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

Microsoft.Extensions.Configuration.ConfigurationSection

public class ConfigurationSection : IConfigurationSection, IConfiguration
Represents a section of application configuration values.
public string this[string key] { get; set; }

Gets or sets the value corresponding to a configuration key.

public string Key { get; }

Gets the key this section occupies in its parent.

public string Path { get; }

Gets the full path to this section from the IConfigurationRoot.

public string Value { get; set; }

Gets or sets the section value.

public ConfigurationSection(IConfigurationRoot root, string path)

Initializes a new instance.

public IEnumerable<IConfigurationSection> GetChildren()

Gets the immediate descendant configuration sub-sections.

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 sub-section with the specified key.

public bool TryGetValue(string key, out string value)

Tries to get the value of this section as a string.