共用方式為


AsyncActionProgressHandler<TProgress> 代理人

定義

表示處理提供進度更新之非同步動作進度更新事件的方法。

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1837385816, 3327, 17808, 174, 137, 149, 165, 165, 200, 180, 184)]
template <typename TProgress>
class AsyncActionProgressHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(1837385816, 3327, 17808, 174, 137, 149, 165, 165, 200, 180, 184)]
public delegate void AsyncActionProgressHandler<TProgress>(IAsyncActionWithProgress<TProgress> asyncInfo, TProgress progressInfo);
Public Delegate Sub AsyncActionProgressHandler(Of TProgress)(asyncInfo As IAsyncActionWithProgress(Of TProgress), progressInfo As TProgress)

類型參數

TProgress

參數

asyncInfo
IAsyncActionWithProgress<TProgress>

非同步動作。

progressInfo
TProgress

進度資訊。

屬性

Windows 需求

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

範例

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

適用於