SetterBase.IsSealed 屬性

定義

取得值,指出這個物件的狀態是否不可變。

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

屬性值

Boolean

true 如果這個物件處於不可變狀態,則為 ;否則為 false

備註

如果這個屬性傳 true 回,而且您嘗試修改此物件的狀態,則會擲回例外狀況。

適用於