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

ConfigurationSectionCollection

Represents a collection of related sections within a configuration file.
public ConfigurationSection this[string name] { get; }

Gets the specified ConfigurationSection object.

public ConfigurationSection this[int index] { get; }

Gets the specified ConfigurationSection object.

public void Add(string name, ConfigurationSection section)

Adds a ConfigurationSection object to the ConfigurationSectionCollection object.

public void Clear()

Clears this ConfigurationSectionCollection object.

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

Copies this ConfigurationSectionCollection object to an array.

public ConfigurationSection Get(int index)

Gets the specified ConfigurationSection object contained in this ConfigurationSectionCollection object.

public ConfigurationSection Get(string name)

Gets the specified ConfigurationSection object contained in this ConfigurationSectionCollection object.

public string GetKey(int index)

Gets the key of the specified ConfigurationSection object contained in this ConfigurationSectionCollection object.

public void Remove(string name)

Removes the specified ConfigurationSection object from this ConfigurationSectionCollection object.

public void RemoveAt(int index)

Removes the specified ConfigurationSection object from this ConfigurationSectionCollection object.