DbConnectionStringBuilder.IsFixedSize Property

Definition

获取一个值,该值指示 DbConnectionStringBuilder 是否具有固定大小。Gets a value that indicates whether the DbConnectionStringBuilder has a fixed size.

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

Property Value

Boolean

如果 DbConnectionStringBuilder 具有固定大小,则为 true;否则为 falsetrue if the DbConnectionStringBuilder has a fixed size; otherwise false.

Implements

Attributes

Remarks

固定大小的集合不允许在创建集合后添加或删除元素,但允许修改现有元素。A fixed-size collection does not allow adding or removing elements after the collection is created, but it does allow modifying existing elements.

固定大小的集合只是包含包装的集合,用于阻止添加和移除元素;因此,如果对基础集合进行了更改,包括添加或删除元素,则固定大小的集合将反映这些更改。A fixed-size collection is just a collection with a wrapper that prevents adding and removing elements; therefore, if changes are made to the underlying collection, including adding or removing elements, the fixed-size collection reflects those changes.

Applies to

See also