<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.0-rc.1.25451.107" />

ConfigurationSection

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.

Gets the immediate descendant configuration sub-sections.

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.