AsyncActionWithProgressCompletedHandler<TProgress> Délégué

Définition

Représente une méthode qui gère l’événement terminé d’une action asynchrone qui fournit des mises à jour de progression.

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

Paramètres de type

TProgress

Paramètres

asyncInfo
IAsyncActionWithProgress<TProgress>

Action asynchrone.

asyncStatus
AsyncStatus

Une des valeurs de l'énumération.

Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduit dans v1.0)

Exemples

Par exemple, le code C++/WinRT illustrant la gestion de l’événement Completed , consultez Types délégués pour les actions et opérations asynchrones.

S’applique à