Share via


ProtectedFileStream.ReadAsync method

Returns an asynchronous byte reader object. Implements the IInputStream.ReadAsync method.

Syntax

public:
virtual IAsyncOperationWithProgress<IBuffer, UInt32>^ ReadAsync(
  IBuffer^ buffer, 
  unsigned int count, 
  InputStreamOptions options
)

Parameters

buffer

Type: IBuffer

The buffer into which the asynchronous read operation places the bytes that are read.

count

Type: UInt32

The number of bytes to read that is less than or equal to the capacity of the buffer.

options

Type: InputStreamOptions

Specifies the type of the asynchronous read operation.

Return value

Type: IAsyncOperationWithProgress<IBuffer, UInt32>

The asynchronous operation.

Requirements

Minimum supported client
None supported
Minimum supported server
None supported
Minimum supported phone
Windows Phone 8.1
Namespace
Microsoft::RightsManagement
Metadata
Microsoft.RightsManagement.winmd

See also

ProtectedFileStream