AsyncOperationWithProgressCompletedHandler<TResult,TProgress> 委托

定义

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

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3898471453, 27303, 18147, 168, 226, 240, 9, 216, 64, 198, 39)]
template <typename TResult, typename TProgress>
class AsyncOperationWithProgressCompletedHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(3898471453, 27303, 18147, 168, 226, 240, 9, 216, 64, 198, 39)]
public delegate void AsyncOperationWithProgressCompletedHandler<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress> asyncInfo, AsyncStatus asyncStatus);
Public Delegate Sub AsyncOperationWithProgressCompletedHandler(Of TResult, TProgress)(asyncInfo As IAsyncOperationWithProgress(Of TResult, TProgress), asyncStatus As AsyncStatus)

类型参数

TResult
TProgress

参数

asyncStatus
AsyncStatus

枚举值之一。

属性

Windows 要求

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

示例

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

适用于