AsyncEventHandler<T> Delegate

An asynchronous event handler.

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Public Delegate Function AsyncEventHandler(Of T As EventArgs) ( _
    sender As Object, _
    args As T _
) As Task
public delegate Task AsyncEventHandler<T>(
    Object sender,
    T args
)
where T : EventArgs
generic<typename T>
where T : EventArgs 
public delegate Task^ AsyncEventHandler(
    Object^ sender, 
    T args
)
type AsyncEventHandler = 
    delegate of  
        sender:Object * 
        args:'T -> Task
JScript does not support generic types or methods.

Type Parameters

Parameters

  • args
    Type: T

Return Value

Type: System.Threading.Tasks.Task

See Also

Reference

Microsoft.VisualStudio.Threading Namespace