ThrowingWasUpgradedWriteOnlyStream Class

Definition

Caution

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

A Stream which throws on calls to write after the stream was upgraded

public ref class ThrowingWasUpgradedWriteOnlyStream : Microsoft::AspNetCore::Server::IIS::Core::WriteOnlyStream
public class ThrowingWasUpgradedWriteOnlyStream : Microsoft.AspNetCore.Server.IIS.Core.WriteOnlyStream
[System.Obsolete("The ThrowingWasUpgradedWriteOnlyStream is obsolete and will be removed in a future release.")]
public class ThrowingWasUpgradedWriteOnlyStream : Microsoft.AspNetCore.Server.IIS.Core.WriteOnlyStream
type ThrowingWasUpgradedWriteOnlyStream = class
    inherit WriteOnlyStream
[<System.Obsolete("The ThrowingWasUpgradedWriteOnlyStream is obsolete and will be removed in a future release.")>]
type ThrowingWasUpgradedWriteOnlyStream = class
    inherit WriteOnlyStream
Public Class ThrowingWasUpgradedWriteOnlyStream
Inherits WriteOnlyStream
Inheritance
ThrowingWasUpgradedWriteOnlyStream
Attributes

Remarks

Users should not need to instantiate this class.

Constructors

ThrowingWasUpgradedWriteOnlyStream()

Properties

CanRead (Inherited from WriteOnlyStream)
CanSeek (Inherited from WriteOnlyStream)
CanWrite (Inherited from WriteOnlyStream)
Length (Inherited from WriteOnlyStream)
Position (Inherited from WriteOnlyStream)
ReadTimeout (Inherited from WriteOnlyStream)

Methods

Flush()

When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.

Read(Byte[], Int32, Int32) (Inherited from WriteOnlyStream)
ReadAsync(Byte[], Int32, Int32, CancellationToken) (Inherited from WriteOnlyStream)
ReadAsync(Memory<Byte>, CancellationToken) (Inherited from WriteOnlyStream)
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.

Write(Byte[], Int32, Int32)

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

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

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.

Applies to