DbConnectionStringBuilder.IsFixedSize 屬性

定義

取得值,指出 DbConnectionStringBuilder 是否有固定的大小。

public:
 virtual property bool IsFixedSize { bool get(); };
[System.ComponentModel.Browsable(false)]
public virtual bool IsFixedSize { get; }
[<System.ComponentModel.Browsable(false)>]
member this.IsFixedSize : bool
Public Overridable ReadOnly Property IsFixedSize As Boolean

屬性值

如果 DbConnectionStringBuilder 有固定大小,則為 true,否則為 false

實作

屬性

備註

固定大小集合不允許在建立集合之後加入或移除專案,但允許修改現有的元素。

固定大小集合只是具有包裝函式的集合,可防止新增和移除專案;因此,如果對基礎集合進行變更,包括新增或移除元素,固定大小集合就會反映這些變更。

適用於

另請參閱