AsyncActionWithProgressCompletedHandler<TProgress> 委托

定义

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

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2617417617, 52356, 17661, 172, 38, 10, 108, 78, 85, 82, 129)]
template <typename TProgress>
class AsyncActionWithProgressCompletedHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(2617417617, 52356, 17661, 172, 38, 10, 108, 78, 85, 82, 129)]
public delegate void AsyncActionWithProgressCompletedHandler<TProgress>(IAsyncActionWithProgress<TProgress> asyncInfo, AsyncStatus asyncStatus);
Public Delegate Sub AsyncActionWithProgressCompletedHandler(Of TProgress)(asyncInfo As IAsyncActionWithProgress(Of TProgress), asyncStatus As AsyncStatus)

类型参数

TProgress

参数

asyncInfo
IAsyncActionWithProgress<TProgress>

异步操作。

asyncStatus
AsyncStatus

枚举值之一。

属性

Windows 要求

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

示例

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

适用于