語言

SetterBaseCollection.IsSealed 屬性

定義

會得到一個值,表示該物件是否處於唯讀狀態。

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

屬性值

true如果這個物件處於唯讀狀態且無法更改;否則,。 false

備註

如果這個屬性回傳 true ,而你嘗試修改物件的狀態,就會拋出一個例外。

適用於