ReadOnlyStream class

A read-only stream wrapper.

public sealed class ReadOnlyStream : WrappingStreamBase

Public Members

name description
ReadOnlyStream(…) Initializes a new instance of the ReadOnlyStream class.
override CanWrite { get; } Gets a value indicating whether the current stream supports writing.
override Read(…) Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
override ReadAsync(…) Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests. (2 methods)
override SetLength(…) Sets the length of the current stream.
override Write(…) Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
override WriteAsync(…) 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. (2 methods)

See Also