Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

QuicStream.DisposeAsync Method

Definition

Namespace:
System.Net.Quic
Assembly:
System.Net.Quic.dll
Source:
QuicStream.cs
Source:
QuicStream.cs
Source:
QuicStream.cs
Source:
QuicStream.cs
Source:
QuicStream.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

If the read side is not fully consumed, that is, ReadsClosed is not completed or ReadAsync(Memory<Byte>, CancellationToken) hasn't returned 0, aborts the read side with provided DefaultStreamErrorCode. If the write side hasn't been closed, closes it gracefully as if CompleteWrites() was called. Finally, all resources associated with the stream will be released.

public:
 override System::Threading::Tasks::ValueTask DisposeAsync();
public override System.Threading.Tasks.ValueTask DisposeAsync();
override this.DisposeAsync : unit -> System.Threading.Tasks.ValueTask
Public Overrides Function DisposeAsync () As ValueTask

Returns

A task that represents the asynchronous dispose operation.

Applies to


Feedback

Was this page helpful?