共用方式為


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程式碼範例,請參閱非同步動作和作業的委派類型

適用於