Sdílet prostřednictvím


AsyncEvent<TEventArgs>.InvokeAsync Method

Definition

Overloads

InvokeAsync(Object, TEventArgs)

Invoke async to await for each

InvokeAsync(Object, TEventArgs, Boolean)

Invoke async to await for each

InvokeAsync(Object, TEventArgs)

Invoke async to await for each

public:
 System::Threading::Tasks::Task ^ InvokeAsync(System::Object ^ sender, TEventArgs eventArgs);
public System.Threading.Tasks.Task InvokeAsync (object sender, TEventArgs eventArgs);
public System.Threading.Tasks.Task InvokeAsync (object? sender, TEventArgs eventArgs);
member this.InvokeAsync : obj * 'EventArgs -> System.Threading.Tasks.Task
Public Function InvokeAsync (sender As Object, eventArgs As TEventArgs) As Task

Parameters

sender
Object

sender object

eventArgs
TEventArgs

Event Argument instance

Returns

The task to await to wait for all notifications to complete

Applies to

InvokeAsync(Object, TEventArgs, Boolean)

Invoke async to await for each

public:
 System::Threading::Tasks::Task ^ InvokeAsync(System::Object ^ sender, TEventArgs eventArgs, bool invokeInOrder);
public System.Threading.Tasks.Task InvokeAsync (object sender, TEventArgs eventArgs, bool invokeInOrder);
public System.Threading.Tasks.Task InvokeAsync (object? sender, TEventArgs eventArgs, bool invokeInOrder);
member this.InvokeAsync : obj * 'EventArgs * bool -> System.Threading.Tasks.Task
Public Function InvokeAsync (sender As Object, eventArgs As TEventArgs, invokeInOrder As Boolean) As Task

Parameters

sender
Object

sender object

eventArgs
TEventArgs

Event Argument instance

invokeInOrder
Boolean

Invoke the subscribers in order

Returns

The task to await to wait for all notifications to complete

Applies to