<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0-preview.3.21201.4" />

NameValueConfigurationCollection

Contains a collection of NameValueConfigurationElement objects. This class cannot be inherited.
public string[] AllKeys { get; }

Gets the keys to all items contained in the NameValueConfigurationCollection.

public NameValueConfigurationElement this[string name] { get; set; }

Gets or sets the NameValueConfigurationElement object based on the supplied parameter.

Initializes a new instance of the NameValueConfigurationCollection class.

public void Add(NameValueConfigurationElement nameValue)

Adds a NameValueConfigurationElement object to the collection.

public void Clear()

Clears the NameValueConfigurationCollection.

public void Remove(NameValueConfigurationElement nameValue)

Removes a NameValueConfigurationElement object from the collection based on the provided parameter.

public void Remove(string name)

Removes a NameValueConfigurationElement object from the collection based on the provided parameter.