<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.2" />

Microsoft.Extensions.Configuration.ConfigurationRoot

public class ConfigurationRoot : IConfigurationRoot, IConfiguration, IDisposable
Represents the root node for a configuration.
public string this[string key] { get; set; }

Gets or sets the value corresponding to a configuration key.

public IEnumerable<IConfigurationProvider> Providers { get; }

The IConfigurationProviders for this configuration.

public ConfigurationRoot(IList<IConfigurationProvider> providers)

Initializes a Configuration root with a list of providers.

public void Dispose()

public IEnumerable<IConfigurationSection> GetChildren()

Gets the immediate children subsections.

public IChangeToken GetReloadToken()

Returns a IChangeToken that can be used to observe when this configuration is reloaded.

public IConfigurationSection GetSection(string key)

Gets a configuration subsection with the specified key.

public void Reload()

Forces the configuration values to be reloaded from the underlying sources.