Share via


DataReader.LoadAsync(UInt32) Method

Definition

Loads data from the input stream.

public:
 virtual DataReaderLoadOperation ^ LoadAsync(unsigned int count) = LoadAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
DataReaderLoadOperation LoadAsync(uint32_t const& count);
[Windows.Foundation.Metadata.RemoteAsync]
public DataReaderLoadOperation LoadAsync(uint count);
function loadAsync(count)
Public Function LoadAsync (count As UInteger) As DataReaderLoadOperation

Parameters

count
UInt32

unsigned int

uint32_t

The count of bytes to load into the intermediate buffer.

Returns

The asynchronous load data request.

Implements

M:Windows.Storage.Streams.IDataReader.LoadAsync(System.UInt32) M:Windows.Storage.Streams.IDataReader.LoadAsync(unsigned int) M:Windows.Storage.Streams.IDataReader.LoadAsync(uint32_t)
Attributes

Examples

Sample applications that use this method include Serializing and deserializing data sample, 3D Printing Sample, Bluetooth RFCOMM chat sample, and Compression sample.

Remarks

The read operation can get more or fewer bytes depending on how the InputStreamOptions property is set.

You will need to call this method to load the data before the data can be read from DataReader.

Applies to

See also