Windows Dev Center

DataReaderLoadOperation class

Loads data from an input stream.

Syntax


var dataReaderLoadOperation = promise.operation;

Members

The DataReaderLoadOperation class has these types of members:

Methods

The DataReaderLoadOperation class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Cancel Requests the cancellation of the data load operation.
Close Requests that work associated with the data load operation should stop.
GetResults Returns the result of the data load operation.

 

Properties

The DataReaderLoadOperation class has these properties.

PropertyAccess typeDescription

Completed

Read/writeGets or sets the handler to call when the data load operation is complete.

ErrorCode

Read-onlyGets the error code for the data load operation if it fails.

Id

Read-onlyGets a unique identifier that represents the data load operation.

Status

Read-onlyGets the current status of the data load operation.

 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Storage.Streams
Windows::Storage::Streams [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage.Streams
Windows::Storage::Streams [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object
IAsyncOperation(UInt32)
IAsyncInfo
DataReader

 

 

Show:
© 2015 Microsoft