AsyncEventHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.