EventDeferral.WaitForCompletion(CancellationToken) Method
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.
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
- cancellationToken
- CancellationToken
Returns
Task.
- Attributes