AsyncOperationCompletedHandler<TResult> Delegate

Definition

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

/// [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)

Type Parameters

TResult

Parameters

asyncInfo
IAsyncOperation<TResult>

The asynchronous operation.

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