Determine whether the underlying framework stream should be disposed when this LeadStream is disposed.
public virtual bool DisposeStream { get; }
Public Overridable ReadOnly Property DisposeStream() As Boolean
Get
true if the underlying framework Stream
should be disposed when this LeadStreamdisposes; otherwise, false.
The value of DisposeStream is set by the implementation class to determine whether to dispose (close) the stream when this ILeadStream object is disposed.
When the value is true, this ILeadStream object will call IDisposable.Dispose
on the framework stream when its own Dispose
method is called. This is performed when ILeadStream
owns the underlying framework stream.
When the value is false, the ILeadStream object will not call Dispose
on the framework stream. This is performed when ILeadStream
does not own the underlying framework stream.
For instance, LeadStream takes a framework stream as an input in the constructor and a autoDisposeStream boolean parameter passed by the user. Therefore, the user can control whether ownership of the underlying stream is passed to ILeadStream
.
LeadFileStream and HttpClientLeadStream will set the stream once it is successfully opened. These objects own the underlying framework stream and the value of their DisposeStream values will always be true.
Refer to RasterCodecs Async Operations for more information and examples.
For .NET Framework: A reference to the Leadtools.Async.dll assembly is required to use this functionality.
For .NET Standard: This functionality is included in the Leadtools.dll assembly.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document