Compartilhar via


SpanExtensions.ReadAsync Método

Definição

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

Parâmetros

stm
Stream
buffer
Memory<Byte>
cancellationToken
CancellationToken

Retornos

Aplica-se a