Export (0) Print
Expand All

Sys.CancelEventArgs cancel Property

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

NoteNote

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.

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

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

Community Additions

Show:
© 2014 Microsoft