Partager via


CancelKernelEventArgs.Cancel Property

Definition

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.

Applies to