WriteOnlyStream Class

Definition

Caution

The WriteOnlyStream is obsolete and will be removed in a future release.

A Stream which only allows for writes.

public ref class WriteOnlyStream abstract : System::IO::Stream
public abstract class WriteOnlyStream : System.IO.Stream
[System.Obsolete("The WriteOnlyStream is obsolete and will be removed in a future release.")]
public abstract class WriteOnlyStream : System.IO.Stream
type WriteOnlyStream = class
    inherit Stream
[<System.Obsolete("The WriteOnlyStream is obsolete and will be removed in a future release.")>]
type WriteOnlyStream = class
    inherit Stream
Public MustInherit Class WriteOnlyStream
Inherits Stream
Inheritance
WriteOnlyStream
Derived
Attributes

Constructors

WriteOnlyStream()

Properties

CanRead

When overridden in a derived class, gets a value indicating whether the current stream supports reading.

CanSeek

When overridden in a derived class, gets a value indicating whether the current stream supports seeking.

CanWrite

When overridden in a derived class, gets a value indicating whether the current stream supports writing.

Length

When overridden in a derived class, gets the length in bytes of the stream.

Position

When overridden in a derived class, gets or sets the position within the current stream.

ReadTimeout

Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.

Methods

Read(Byte[], Int32, Int32)

When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

ReadAsync(Byte[], Int32, Int32, CancellationToken)

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.

ReadAsync(Memory<Byte>, CancellationToken)

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.

Seek(Int64, SeekOrigin)

When overridden in a derived class, sets the position within the current stream.

SetLength(Int64)

When overridden in a derived class, sets the length of the current stream.

Applies to