Edit

Share via


StreamExtensions.ReadAsync Method

Definition

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

Parameters

stream
Stream
buffer
Memory<Byte>
cancellationToken
CancellationToken

Returns

Applies to