AsyncEventHandler Delegate

Definition

An asynchronous event handler.

C++
public delegate System::Threading::Tasks::Task ^ AsyncEventHandler(System::Object ^ sender, EventArgs ^ args);

Parameters

sender
Object

The sender of the event.

args
EventArgs

Event arguments.

Return Value

A task whose completion signals handling is finished.

Extension Methods

InvokeAsync(AsyncEventHandler, Object, EventArgs)

Invokes asynchronous event handlers, returning a task that completes when all event handlers have been invoked. Each handler is fully executed (including continuations) before the next handler in the list is invoked.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022