EventDeferral.WaitForCompletion(CancellationToken) Method

Definition

Caution

This is an internal only method to be used by EventHandler extension classes, public callers should call GetDeferral() instead on the DeferredEventArgs.

Waits for the EventDeferral to be completed by the event handler.

[System.ComponentModel.Browsable(false)]
[System.Obsolete("This is an internal only method to be used by EventHandler extension classes, public callers should call GetDeferral() instead on the DeferredEventArgs.")]
public System.Threading.Tasks.Task WaitForCompletion (System.Threading.CancellationToken cancellationToken);
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("This is an internal only method to be used by EventHandler extension classes, public callers should call GetDeferral() instead on the DeferredEventArgs.")>]
member this.WaitForCompletion : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WaitForCompletion (cancellationToken As CancellationToken) As Task

Parameters

Returns

Task.

Attributes

Applies to