Freezable.CanFreeze Freezable.CanFreeze Freezable.CanFreeze Freezable.CanFreeze Property

定义

获取一个值,该值指示是否可将对象变为不可修改。Gets a value that indicates whether the object can be made unmodifiable.

public:
 property bool CanFreeze { bool get(); };
public bool CanFreeze { get; }
member this.CanFreeze : bool
Public ReadOnly Property CanFreeze As Boolean

属性值

如果当前对象可以变为不可修改,或者已经不可修改,则为 true;否则为 falsetrue if the current object can be made unmodifiable or is already unmodifiable; otherwise, false.

继承者说明

此方法的实现使用FreezeCore(Boolean)方法替换isChecking设置为true来确定是否Freezable可变为不可修改。This method implementation uses the FreezeCore(Boolean) method with isChecking set to true to determine whether a Freezable can be made unmodifiable. 若要修改此属性在派生类中的行为的方式,请重写FreezeCore(Boolean)方法。To modify the way this property behaves in a derived class, override the FreezeCore(Boolean) method.

适用于