Udostępnij za pośrednictwem


AsyncActionCompletedHandler Delegate

Definition

Represents a method that handles the completed event of an asynchronous action.

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)

Parameters

asyncInfo
IAsyncAction

The asynchronous action.

asyncStatus
AsyncStatus

One of the enumeration values.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced in v1.0)

Examples

For example C++/WinRT code illustrating how to handle the Completed event, see Delegate types for asynchronous actions and operations.

Applies to