Sys.CancelEventArgs cancel Property

Gets or sets a value that specifies whether the event source should cancel the operation that caused the event.

note

To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel methods.

Syntax

var isCanceled = eventArgs.get_cancel();
eventArgs.set_cancel(value);

Return Value

true to request that the event be canceled; otherwise, false. The default is false.