共用方式為


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

參數

asyncInfo
IAsyncOperationWithProgress<TResult,TProgress>

非同步作業。

asyncStatus
AsyncStatus

其中一個列舉值。

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.FoundationContract (已於 v1.0 引進)

範例

如需 C++/WinRT 程式碼說明如何處理 Completed 事件,請參閱 非同步動作和作業的委派類型

適用於