WrappingStreamBase.ReadAsync method

Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.

public abstract Task<int> ReadAsync(byte[] buffer, int offset, int count, 
    CancellationToken cancellationToken)

See Also