Compartir a través de


HttpRequestStreamReader.ReadAsync Método

Definición

Sobrecargas

ReadAsync(Memory<Char>, CancellationToken)
ReadAsync(Char[], Int32, Int32)

ReadAsync(Memory<Char>, CancellationToken)

Source:
HttpRequestStreamReader.cs

Lee de forma asincrónica los caracteres de la secuencia actual en un bloque de memoria.

public override System.Threading.Tasks.ValueTask<int> ReadAsync (Memory<char> buffer, System.Threading.CancellationToken cancellationToken = default);
override this.ReadAsync : Memory<char> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<int>
Public Overrides Function ReadAsync (buffer As Memory(Of Char), Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Integer)

Parámetros

buffer
Memory<Char>
cancellationToken
CancellationToken

Devoluciones

Se aplica a

ReadAsync(Char[], Int32, Int32)

Source:
HttpRequestStreamReader.cs
Source:
HttpRequestStreamReader.cs
Source:
HttpRequestStreamReader.cs

Lee un número máximo de caracteres especificado en el lector de texto actual de forma asincrónica y escribe los datos en un búfer, comenzando en el índice especificado.

public:
 override System::Threading::Tasks::Task<int> ^ ReadAsync(cli::array <char> ^ buffer, int index, int count);
public override System.Threading.Tasks.Task<int> ReadAsync (char[] buffer, int index, int count);
override this.ReadAsync : char[] * int * int -> System.Threading.Tasks.Task<int>
Public Overrides Function ReadAsync (buffer As Char(), index As Integer, count As Integer) As Task(Of Integer)

Parámetros

buffer
Char[]
index
Int32
count
Int32

Devoluciones

Se aplica a