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

IInternalConfigRoot

public interface IInternalConfigRoot
Defines interfaces used by internal .NET structures to support a configuration root object.
bool IsDesignTime { get; }

Returns a value indicating whether the configuration is a design-time configuration.

Represents the method that handles the ConfigChanged event of an IInternalConfigRoot object.

Represents the method that handles the ConfigRemoved event of a IInternalConfigRoot object.

Returns an IInternalConfigRecord object representing a configuration specified by a configuration path.

object GetSection(string section, string configPath)

Returns an Object representing the data in a section of a configuration file.

string GetUniqueConfigPath(string configPath)

Returns a value representing the file path of the nearest configuration ancestor that has configuration data.

Returns an IInternalConfigRecord object representing a unique configuration record for given configuration path.

void Init(IInternalConfigHost host, bool isDesignTime)

Initializes a configuration object.

void RemoveConfig(string configPath)

Finds and removes a configuration record and all its children for a given configuration path.