AsyncEvent<TEventArgs> Class

Definition

Async Event class to support firing async EventHandlers

C++
generic <typename TEventArgs>
 where TEventArgs : EventArgspublic ref class AsyncEvent

Type Parameters

TEventArgs

The EventArgs type to support

Inheritance
AsyncEvent<TEventArgs>

Constructors

AsyncEvent<TEventArgs>()

Initializes a new instance of the AsyncEvent<TEventArgs> class.

Properties

AsyncInvocations

Return the async invocation list

Methods

InsertCallback(AsyncEvent<TEventArgs>, Int32, Func<Object,TEventArgs,Task>)

Insert a callback in the specified position

InvokeAsync(Object, TEventArgs, Boolean)

Invoke async to await for each

InvokeAsync(Object, TEventArgs)

Invoke async to await for each

OnInvocationListChanged(Boolean)

Invoked when changes to the Invocation List are added or removed

Operators

Addition(AsyncEvent<TEventArgs>, Func<Object,TEventArgs,Task>)

Operator += to support standard mechanism of event subscription

Subtraction(AsyncEvent<TEventArgs>, Func<Object,TEventArgs,Task>)

Operator -= to support standard mechanism of event subscription

Applies to

Produkt Verzie
Visual Studio SDK 2017, 2019, 2022