InputStreamOverStream.ReadAsync(IBuffer, UInt32, InputStreamOptions) Método

Definição

Retorna um objeto de leitor de bytes assíncrono.

public:
 virtual IAsyncOperationWithProgress<IBuffer ^, unsigned int> ^ ReadAsync(IBuffer ^ buffer, unsigned int count, InputStreamOptions options) = ReadAsync;
IAsyncOperationWithProgress<IBuffer, uint32_t> ReadAsync(IBuffer const& buffer, uint32_t const& count, InputStreamOptions const& options);
public IAsyncOperationWithProgress<IBuffer,uint> ReadAsync(IBuffer buffer, uint count, InputStreamOptions options);
function readAsync(buffer, count, options)
Public Function ReadAsync (buffer As IBuffer, count As UInteger, options As InputStreamOptions) As IAsyncOperationWithProgress(Of IBuffer, UInteger)

Parâmetros

buffer
IBuffer

O buffer no qual a operação de leitura assíncrona coloca os bytes lidos.

count
UInt32

unsigned int

uint32_t

O número de bytes a serem lidos que é menor ou igual ao valor capacidade .

options
InputStreamOptions

Especifica o tipo da operação de leitura assíncrona.

Retornos

IAsyncOperationWithProgress<IBuffer,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<Windows.Storage.Streams.IBuffer,unsigned int>

IAsyncOperationWithProgress<IBuffer,uint32_t>

A operação assíncrona.

Implementações

M:Windows.Storage.Streams.IInputStream.ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions) M:Windows.Storage.Streams.IInputStream.ReadAsync(Windows.Storage.Streams.IBuffer,unsigned int,Windows.Storage.Streams.InputStreamOptions) M:Windows.Storage.Streams.IInputStream.ReadAsync(Windows.Storage.Streams.IBuffer,uint32_t,Windows.Storage.Streams.InputStreamOptions)

Exemplos

Consulte o exemplo de código em ControlChannelTrigger com WebSockets.

Aplica-se a

Confira também