<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.0-preview.1.25080.5" />

ConfigurationProvider

Defines the core behavior of configuration providers and provides a base for derived classes.
protected IDictionary<string, string> Data { get; protected set; }

Gets or sets the configuration key-value pairs for this provider.

Initializes a new IConfigurationProvider.

public virtual IEnumerable<string> GetChildKeys(IEnumerable<string> earlierKeys, string parentPath)

Returns the list of keys that this provider has.

Returns a IChangeToken that can be used to listen when this provider is reloaded.

public virtual void Load()

Loads (or reloads) the data for this provider.

protected void OnReload()

Triggers the reload change token and creates a new one.

public virtual void Set(string key, string value)

Sets a value for a given key.

public virtual bool TryGet(string key, out string value)

Attempts to find a value with the given key.