DataReaderLoadOperation 类

定义

从输入流加载数据。

public ref class DataReaderLoadOperation sealed : IAsyncOperation<unsigned int>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DataReaderLoadOperation final : IAsyncOperation<uint32_t>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DataReaderLoadOperation : IAsyncOperation<uint>
Public NotInheritable Class DataReaderLoadOperation
Implements IAsyncOperation(Of UInteger)
继承
Object Platform::Object IInspectable DataReaderLoadOperation
属性
实现
IAsyncInfo IAsyncOperation<UInt32> Windows.Foundation.IAsyncOperation IAsyncOperation<uint32_t>

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

属性

Completed

获取或设置在数据加载操作完成时要调用的处理程序。

ErrorCode

获取数据加载操作(如果失败)的错误代码。

Id

获取表示数据加载操作的唯一标识符。

Status

获取数据加载操作的当前状态。

方法

Cancel()

请求取消数据加载操作。

Close()

与数据加载操作关联的请求应停止。

GetResults()

返回数据加载操作的结果。

适用于

另请参阅