ChainedConfigurationProvider Class

Definition

Provides a chained implementation of IConfigurationProvider.

C#
public class ChainedConfigurationProvider : IDisposable, Microsoft.Extensions.Configuration.IConfigurationProvider
Inheritance
ChainedConfigurationProvider
Implements

Constructors

ChainedConfigurationProvider(ChainedConfigurationSource)

Initializes a new instance from the source configuration.

Properties

Configuration

Gets the chained configuration.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetChildKeys(IEnumerable<String>, String)

Returns the immediate descendant configuration keys for a given parent path based on the data of this IConfigurationProvider and the set of keys returned by all the preceding IConfigurationProvider objects.

GetReloadToken()

Returns a change token if this provider supports change tracking; otherwise returns null.

Load()

Loads configuration values from the source represented by this IConfigurationProvider.

Set(String, String)

Sets a configuration value for the specified key.

TryGet(String, String)

Tries to get a configuration value for the specified key.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)