Share via


CurrentChangingEventArgs.IsCancelable 属性

定义

获取一个值,该值指示是否可以取消 CurrentItem 更改。

public:
 property bool IsCancelable { bool get(); };
bool IsCancelable();
public bool IsCancelable { get; }
var boolean = currentChangingEventArgs.isCancelable;
Public ReadOnly Property IsCancelable As Boolean

属性值

Boolean

bool

如果可以取消事件,则为 true;如果无法取消事件,则为 false

注解

如果 IsCancelable 属性值为 false,则将 Cancel 属性设置为 true 将引发 InvalidOperationException。

适用于