Edit

Share via


StreamExtensions.WriteAsync Method

Definition

public static System.Threading.Tasks.ValueTask WriteAsync (this System.IO.Stream stream, ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken = default);
static member WriteAsync : System.IO.Stream * ReadOnlyMemory<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function WriteAsync (stream As Stream, buffer As ReadOnlyMemory(Of Byte), Optional cancellationToken As CancellationToken = Nothing) As ValueTask

Parameters

stream
Stream
cancellationToken
CancellationToken

Returns

Applies to