다음을 통해 공유


AsyncEventHandler Delegate

Definition

A handler for async events that returns a Task

public delegate System::Threading::Tasks::Task ^ AsyncEventHandler(System::Object ^ sender, EventArgs ^ args);
public delegate System.Threading.Tasks.Task AsyncEventHandler(object sender, EventArgs args);
type AsyncEventHandler = delegate of obj * EventArgs -> Task
Public Delegate Function AsyncEventHandler(sender As Object, args As EventArgs) As Task 

Parameters

sender
Object

The sender of the event.

args
EventArgs

The arguments

Return Value

A task whose completion signals handling is finished.

Applies to