DataReaderLoadOperation
DataReaderLoadOperation
DataReaderLoadOperation
DataReaderLoadOperation
Class
Definition
Loads data from an input stream.
public : sealed class DataReaderLoadOperation : IAsyncInfo, IAsyncOperationpublic sealed class DataReaderLoadOperation : IAsyncInfo, IAsyncOperationPublic NotInheritable Class DataReaderLoadOperation Implements IAsyncInfo, IAsyncOperation// You can use this class in JavaScript.
- 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>// You can use this property in JavaScript.
- Value
- AsyncOperationCompletedHandler<unsigned int> AsyncOperationCompletedHandler<uint> AsyncOperationCompletedHandler<uint> AsyncOperationCompletedHandler<uint>
The handler to call when the operation is complete.
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 Exception// You can use this property in JavaScript.
- Value
- HResult Exception Exception Exception
The status of the operation.
Id Id Id Id
Gets a unique identifier that represents the data load operation.
public : unsigned int Id { get; }public uint Id { get; }Public ReadOnly Property Id As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The identifier.
Methods
Cancel() Cancel() Cancel() Cancel()
Requests the cancellation of the data load operation.
public : void Cancel()public void Cancel()Public Function Cancel() As void// You can use this method in JavaScript.
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 void// You can use this method in JavaScript.