Class StreamSource
Represents a stream source.
public sealed class StreamSource : Source
- Inheritance
-
StreamSource
- Inherited Members
Constructors
StreamSource()
Initializes a new instance of the StreamSource class.
public StreamSource()
StreamSource(Stream)
Initializes a new instance of the StreamSource class.
public StreamSource(Stream stream)
Parameters
stream
StreamThe stream to open.
StreamSource(Stream, bool)
Initializes a new instance of the StreamSource class.
public StreamSource(Stream stream, bool disposeStream)
Parameters
Properties
DisposeStream
Gets a value indicating whether stream should be disposed whenever container gets disposed.
public bool DisposeStream { get; }
Property Value
- bool
true
if stream should be disposed; otherwise,false
.
Stream
Gets the stream.
public Stream Stream { get; }
Property Value
- Stream
The source stream.
Methods
GetStreamContainer()
Gets the stream container.
public override StreamContainer GetStreamContainer()
Returns
- StreamContainer
the stream container.
Remarks
Use with caution. You will need to dispose the stream container after retrieval.