SetterBaseCollection.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 回,而且您嘗試修改物件的狀態,則會擲回例外狀況。

適用於