AsyncOperationCompletedHandler<TResult> Délégué

Définition

Représente une méthode qui gère l’événement terminé d’une opération asynchrone.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4242337836, 58840, 17528, 145, 90, 77, 144, 183, 75, 131, 165)]
template <typename TResult>
class AsyncOperationCompletedHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(4242337836, 58840, 17528, 145, 90, 77, 144, 183, 75, 131, 165)]
public delegate void AsyncOperationCompletedHandler<TResult>(IAsyncOperation<TResult> asyncInfo, AsyncStatus asyncStatus);
Public Delegate Sub AsyncOperationCompletedHandler(Of TResult)(asyncInfo As IAsyncOperation(Of TResult), asyncStatus As AsyncStatus)

Paramètres de type

TResult

Paramètres

asyncInfo
IAsyncOperation<TResult>

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 à