AsyncOperationProgressHandler<TResult,TProgress> 委托

定义

表示处理提供进度更新的异步操作的进度更新事件的方法。

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1432946946, 2731, 16922, 135, 120, 248, 206, 80, 38, 215, 88)]
template <typename TResult, typename TProgress>
class AsyncOperationProgressHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(1432946946, 2731, 16922, 135, 120, 248, 206, 80, 38, 215, 88)]
public delegate void AsyncOperationProgressHandler<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress> asyncInfo, TProgress progressInfo);
Public Delegate Sub AsyncOperationProgressHandler(Of TResult, TProgress)(asyncInfo As IAsyncOperationWithProgress(Of TResult, TProgress), progressInfo As TProgress)

类型参数

TResult
TProgress

参数

progressInfo
TProgress

进度信息。

属性

Windows 要求

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

示例

有关演示如何处理 Progress 事件的示例 C++/WinRT 代码,请参阅异步操作和操作的委托类型

适用于