AsyncActionCompletedHandler Délégué

Définition

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

public delegate void AsyncActionCompletedHandler(IAsyncAction ^ asyncInfo, AsyncStatus asyncStatus);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2767019137, 30409, 16573, 139, 230, 177, 217, 15, 178, 10, 231)]
class AsyncActionCompletedHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(2767019137, 30409, 16573, 139, 230, 177, 217, 15, 178, 10, 231)]
public delegate void AsyncActionCompletedHandler(IAsyncAction asyncInfo, AsyncStatus asyncStatus);
var asyncActionCompletedHandlerHandler = function(asyncInfo, asyncStatus){
/* Your code */
}
Public Delegate Sub AsyncActionCompletedHandler(asyncInfo As IAsyncAction, asyncStatus As AsyncStatus)

Paramètres

asyncInfo
IAsyncAction

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

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 à