AsyncOperationCompletedHandler<TResult> AsyncOperationCompletedHandler<TResult> AsyncOperationCompletedHandler<TResult> AsyncOperationCompletedHandler<TResult> AsyncOperationCompletedHandler<TResult> Delegate

Definition

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

public : delegate void AsyncOperationCompletedHandler<TResult>(IAsyncOperation<TResult> asyncInfo, AsyncStatus asyncStatus)
struct AsyncOperationCompletedHandler<TResult> : winrt::Windows::Foundation::IUnknown
{
   AsyncOperationCompletedHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> AsyncOperationCompletedHandler(L lambda);
   template <typename F> AsyncOperationCompletedHandler(F* function);
   template <typename O, typename M> AsyncOperationCompletedHandler(O* object, M method);
   void operator()(winrt::Windows::Foundation::IAsyncOperation<TResult> const& asyncInfo, winrt::Windows::Foundation::AsyncStatus const& asyncStatus) const;
};
public delegate void AsyncOperationCompletedHandler<TResult>(IAsyncOperation<TResult> asyncInfo, AsyncStatus asyncStatus)
Public Delegate Sub AsyncOperationCompletedHandler(Of TResult)(asyncInfo As IAsyncOperation(Of TResult), asyncStatus As AsyncStatus)
var asyncOperationCompletedHandler = function(asyncInfo, asyncStatus) {

 /* Your code */

}
Parameters
asyncStatus
AsyncStatus AsyncStatus AsyncStatus

One of the enumeration values.

Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)