Delen via


CurrentChangingEventArgs.IsCancelable Property

Definition

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.

Applies to