CurrentChangingEventArgs.IsCancelable 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 a value that indicates whether the CurrentItem change can be canceled.
public:
property bool IsCancelable { bool get(); };
bool IsCancelable();
public bool IsCancelable { get; }
var boolean = currentChangingEventArgs.isCancelable;
Public ReadOnly Property IsCancelable As Boolean
Property Value
Boolean
bool
true if the event can be canceled; false if the event cannot be canceled.
Remarks
If the IsCancelable property value is false, setting the Cancel property to true will throw an InvalidOperationException.