DataReader.LoadAsync(UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.