AsyncActionCompletedHandler Delegat

Definition

Stellt eine Methode dar, die das abgeschlossene Ereignis einer asynchronen Aktion verarbeitet.

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)

Parameter

asyncInfo
IAsyncAction

Die asynchrone Aktion.

asyncStatus
AsyncStatus

Einer der Enumerationswerte.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (eingeführt in v1.0)

Beispiele

Ein Beispiel für C++/WinRT-Code , der veranschaulicht, wie das Completed-Ereignis behandelt wird, finden Sie unter Delegieren von Typen für asynchrone Aktionen und Vorgänge.

Gilt für: