Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​Extensions.​Configuration.​IConfiguration
Assembly: Microsoft.Extensions.Configuration.Abstractions
Represents a set of key/value application configuration properties.
Properties
string
Item
Methods
System.​Collections.​Generic.​IEnumerable<​IConfigurationSection>
GetChildren​()
Gets the immediate descendant configuration sub-sections.
Returns The configuration sub-sections.
GetReloadToken​()
Returns a <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> that can be used to observe when this configuration is reloaded.
Returns An <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> token if this provider supports change tracking; otherwise, <see langword="null" /> .
GetSection​(string key)
Gets a configuration sub-section with the specified key.
Returns The <see cref="T:Microsoft.Extensions.Configuration.IConfigurationSection" /> .
key
The key of the configuration section.
Remarks
This method will never return <c>null</c> . If no matching sub-section is found with the specified key,
an empty <see cref="T:Microsoft.Extensions.Configuration.IConfigurationSection" /> will be returned.