StreamWrapper Class Members
In This Topic
The following tables list the members exposed by
StreamWrapper.
Public Constructors
| Name | Description |
| StreamWrapper | Overloaded. Initializes a new instance of the class. |
Public Fields
Public Properties
| Name | Description |
| CanRead | Gets a value indicating whether the current stream supports reading. |
| CanSeek | Gets a value indicating whether the current stream supports seeking. |
| CanTimeout | Gets a value that determines whether the current stream can time out. (Inherited from System.IO.Stream) |
| CanWrite | Gets a value indicating whether the current stream supports writing. |
| Length | Gets the stream length in bytes. |
| Name | Gets or sets the name of the stream. |
| Position | Gets or sets the start position of this stream wrapper in the source stream. |
| ReadTimeout | Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out. (Inherited from System.IO.Stream) |
| SourceStream | Gets the source stream. |
| WriteTimeout | Gets or sets a value, in milliseconds, that determines how long the stream will attempt to write before timing out. (Inherited from System.IO.Stream) |
Public Methods
| Name | Description |
| BeginRead | Begins an asynchronous read operation. (Consider using System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream) |
| BeginWrite | Begins an asynchronous write operation. (Consider using System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream) |
| Close | Closes this stream and releases all resources associated with this stream. |
| CopyTo | Overloaded. Reads the bytes from the current stream and writes them to another stream. (Inherited from System.IO.Stream) |
| CopyToAsync | Overloaded. Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token. (Inherited from System.IO.Stream) |
| DisableRead | Disables reading from this stream. |
| DisableWrite | Disables writing to this stream. |
| Dispose | Overloaded. Releases all resources used by the . (Inherited from System.IO.Stream) |
| DisposeAsync | Asynchronously releases the unmanaged resources used by the System.IO.Stream. (Inherited from System.IO.Stream) |
| EndRead | Waits for the pending asynchronous read to complete. (Consider using System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream) |
| EndWrite | Ends an asynchronous write operation. (Consider using System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream) |
| Flush | Clears buffer for this stream and causes buffered data to be written to the underlying stream. |
| FlushAsync | Overloaded. Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device. (Inherited from System.IO.Stream) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject) |
| Read | Overloaded. Copies bytes from the current buffered stream to an array. |
| ReadAsync | Overloaded. Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Inherited from System.IO.Stream) |
| ReadAtLeast | (Inherited from System.IO.Stream) |
| ReadAtLeastAsync | (Inherited from System.IO.Stream) |
| ReadByte | Reads a byte from the current buffered stream. |
| ReadExactly | Overloaded. (Inherited from System.IO.Stream) |
| ReadExactlyAsync | Overloaded. (Inherited from System.IO.Stream) |
| Seek | Sets the position within this stream. |
| SetLength | Sets the length of this stream. |
| Synchronized | Creates a thread-safe (synchronized) wrapper around the specified System.IO.Stream object. (Inherited from System.IO.Stream) |
| Write | Overloaded. Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. |
| WriteAsync | Overloaded. Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests. (Inherited from System.IO.Stream) |
| WriteByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte. |
Protected Methods
See Also