DispatchSource.SetCancelHandler(Action) 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.
Provides a cancellation handler
public void SetCancelHandler (Action handler);
member this.SetCancelHandler : Action -> unit
Parameters
- handler
- Action
Code to invoke on the target queue. This handler is invoked only once.