CancelKernelEventArgs.Cancel Property
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.
Gets or sets a value indicating whether the operation associated with the event should be canceled.
public bool Cancel { get; set; }
member this.Cancel : bool with get, set
Public Property Cancel As Boolean
Property Value
Remarks
A cancelable event is raised by the system when it is about to perform an action that can be canceled, such as invoking a KernelFunction. The event handler may set Cancel to true to indicate that the operation should be canceled. If there are multiple event handlers registered, subsequent handlers may see and change a value set by a previous handler. The final result is what will be considered by the component raising the event.