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) Freezable會使用將isChecking設為的true方法, 以判斷是否可以設為不可修改。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.

適用於