AsyncOperationWithProgressCompletedHandler<TResult,TProgress> Délégué

Définition

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

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3898471453, 27303, 18147, 168, 226, 240, 9, 216, 64, 198, 39)]
template <typename TResult, typename TProgress>
class AsyncOperationWithProgressCompletedHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(3898471453, 27303, 18147, 168, 226, 240, 9, 216, 64, 198, 39)]
public delegate void AsyncOperationWithProgressCompletedHandler<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress> asyncInfo, AsyncStatus asyncStatus);
Public Delegate Sub AsyncOperationWithProgressCompletedHandler(Of TResult, TProgress)(asyncInfo As IAsyncOperationWithProgress(Of TResult, TProgress), asyncStatus As AsyncStatus)

Paramètres de type

TResult
TProgress

Paramètres

asyncInfo
IAsyncOperationWithProgress<TResult,TProgress>

Opération 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

Pour obtenir un exemple de code C++/WinRT illustrant comment gérer l’événement Completed , consultez Types délégués pour les actions et opérations asynchrones.

S’applique à