Click or drag to resize
IDependencyFilePropertiesDisposableObject Property
This property can be used to hold a reference to a disposable object, such as a temp file that should be deleted when it has no more references. (optional)

Namespace: Sdl.FileTypeSupport.Framework.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2343.0)
Syntax
IDisposable DisposableObject { get; set; }

Property Value

Type: IDisposable
Remarks

You can assign a temp file object with a finalizer that deletes the temp file to this property, and the file should be kept alive as long as anyone has a reference to it (unless, of course, someone explicitly calls Dispose on it).

Normally, users should NOT explicitly invoke Dispose on this object, as it may still be referenced by others. The IDisposable interface is used here mainly to indicate that the object is expected to do some clean-up work at some point when it is no longer needed.

This property is (for obvious reasons) not serialized.

See Also
Community
Edit
Be the first to Edit the community content of this topic.
Comments