<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.2" />

ConfigurationElementCollection

Represents a configuration element containing a collection of child elements.

Gets the type of the ConfigurationElementCollection.

public int Count { get; }

Gets the number of elements in the collection.

protected virtual string ElementName { get; }

Gets the name used to identify this collection of elements in the configuration file when overridden in a derived class.

public bool EmitClear { get; set; }

Gets or sets a value that specifies whether the collection has been cleared.

public bool IsSynchronized { get; }

Gets a value indicating whether access to the collection is synchronized.

public object SyncRoot { get; }

Gets an object used to synchronize access to the ConfigurationElementCollection.

protected virtual bool ThrowOnDuplicate { get; }

Gets a value indicating whether an attempt to add a duplicate ConfigurationElement to the ConfigurationElementCollection will cause an exception to be thrown.

Initializes a new instance of the ConfigurationElementCollection class.

Creates a new instance of the ConfigurationElementCollection class.

protected virtual void BaseAdd(ConfigurationElement element)

Adds a configuration element to the ConfigurationElementCollection.

protected virtual void BaseAdd(int index, ConfigurationElement element)

Adds a configuration element to the configuration element collection.

protected int BaseIndexOf(ConfigurationElement element)

Indicates the index of the specified ConfigurationElement.

public void CopyTo(ConfigurationElement[] array, int index)

Copies the contents of the ConfigurationElementCollection to an array.

protected virtual ConfigurationElement CreateNewElement(string elementName)

Creates a new ConfigurationElement when overridden in a derived class.

When overridden in a derived class, creates a new ConfigurationElement.

protected abstract object GetElementKey(ConfigurationElement element)

Gets the element key for a specified configuration element when overridden in a derived class.

Gets an IEnumerator which is used to iterate through the ConfigurationElementCollection.

protected virtual bool IsElementName(string elementName)

Indicates whether the specified ConfigurationElement exists in the ConfigurationElementCollection.

protected virtual bool IsElementRemovable(ConfigurationElement element)

Indicates whether the specified ConfigurationElement can be removed from the ConfigurationElementCollection.