Share via


AsyncActionWithProgressCompletedHandler<TProgress> Delegato

Definizione

Rappresenta un metodo che gestisce l'evento completato di un'azione asincrona che fornisce gli aggiornamenti dello stato.

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

Parametri di tipo

TProgress

Parametri

asyncInfo
IAsyncActionWithProgress<TProgress>

Azione asincrona.

asyncStatus
AsyncStatus

Uno dei valori di enumerazione.

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, codice C++/WinRT che illustra come gestire l'evento Completato , vedere Delegare i tipi per azioni e operazioni asincrone.

Si applica a