Share via


AsyncActionProgressHandler<TProgress> Delegato

Definizione

Rappresenta un metodo che gestisce gli eventi di aggiornamento dello stato di un'azione asincrona che fornisce gli aggiornamenti dello stato.

/// [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)

Parametri di tipo

TProgress

Parametri

asyncInfo
IAsyncActionWithProgress<TProgress>

Azione asincrona.

progressInfo
TProgress

Informazioni sullo stato di avanzamento.

Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (è stato introdotto in v1.0)

Esempio

Ad esempio, il codice C++/WinRT illustra come gestire l'evento Progress , vedere Delegare i tipi per azioni e operazioni asincrone.

Si applica a