DataReaderLoadOperation DataReaderLoadOperation DataReaderLoadOperation DataReaderLoadOperation Class

Definition

Loads data from an input stream.

public sealed class DataReaderLoadOperationpublic sealed class DataReaderLoadOperationPublic NotInheritable Class DataReaderLoadOperationpublic sealed class DataReaderLoadOperation
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Completed Completed Completed Completed

Gets or sets the handler to call when the data load operation is complete.

public AsyncOperationCompletedHandler<uint> Completed { get; set; }public AsyncOperationCompletedHandler<uint> Completed { get; set; }Public ReadWrite Property Completed As AsyncOperationCompletedHandler<uint>public AsyncOperationCompletedHandler<uint> Completed { get; set; }
Value

The handler to call when the operation is complete.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

ErrorCode ErrorCode ErrorCode ErrorCode

Gets the error code for the data load operation if it fails.

public HResult ErrorCode { get; }public Exception ErrorCode { get; }Public ReadOnly Property ErrorCode As Exceptionpublic HResult ErrorCode { get; }
Value
HResult HResult HResult HResult

The status of the operation.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Id Id Id Id

Gets a unique identifier that represents the data load operation.

public uint Id { get; }public uint Id { get; }Public ReadOnly Property Id As uintpublic uint Id { get; }
Value
uint uint uint uint

The identifier.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Status Status Status Status

Gets the current status of the data load operation.

public AsyncStatus Status { get; }public AsyncStatus Status { get; }Public ReadOnly Property Status As AsyncStatuspublic AsyncStatus Status { get; }
Value
AsyncStatus AsyncStatus AsyncStatus AsyncStatus

One of the enumeration values.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

Cancel() Cancel() Cancel() Cancel()

Requests the cancellation of the data load operation.

public void Cancel()public void Cancel()Public Function Cancel() As voidpublic void Cancel()
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Close() Close() Close() Close()

Requests that work associated with the data load operation should stop.

public void Close()public void Close()Public Function Close() As voidpublic void Close()
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

GetResults() GetResults() GetResults() GetResults()

Returns the result of the data load operation.

public uint GetResults()public uint GetResults()Public Function GetResults() As uintpublic uint GetResults()
Returns
uint uint uint uint

The result of the operation.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)