Skip to main content
.NETFramework4.6.2net8.0net9.0net10.0.NETStandard2.0

Provides abstractions of key-value pair based configuration. Interfaces defined in this package are implemented by classes in Microsoft.Extensions.Configuration and other configuration packages.

Published
Oct 13, 2026
5d ago
Total Downloads
9.7B
9,697,212,615

Install

dotnet add package Microsoft.Extensions.Configuration.Abstractions --version 10.0.13
ProductVersions
.NET
net10.0net8.0net9.0
.NET Standard
netstandard2.0
Other
.NETFramework4.6.2

README

About

Provides abstractions of key-value pair based configuration. Interfaces defined in this package are implemented by classes in Microsoft.Extensions.Configuration and other configuration packages.

Key Features

  • Abstractions for string key-value pair configuration sources and sections
  • Path conventions of keys establishing a heirachy of values
  • Support for multiple configuration sources, aggregating and defining precdence for values
  • Support for reload on change

How to Use

The example below shows a small code sample using this library and trying out the ConfigurationKeyName attribute available since .NET 6:

public class MyClass
{
    [ConfigurationKeyName("named_property")]
    public string NamedProperty { get; set; }
}

Given the simple class above, we can create a dictionary to hold the configuration data and use it as the memory source to build a configuration section:

var dic = new Dictionary<string, string>
{
    {"named_property", "value for named property"},
};

var config = new ConfigurationBuilder()
    .AddInMemoryCollection(dic)
    .Build();

var options = config.Get<MyClass>();
Console.WriteLine(options.NamedProperty); // returns "value for named property"

Main Types

The main types provided by this library are:

  • Microsoft.Extensions.Configuration.IConfiguration
  • Microsoft.Extensions.Configuration.IConfigurationBuilder
  • Microsoft.Extensions.Configuration.IConfigurationProvider
  • Microsoft.Extensions.Configuration.IConfigurationRoot
  • Microsoft.Extensions.Configuration.IConfigurationSection

Additional Documentation

Related Packages

Feedback & Contributing

Microsoft.Extensions.Caching.Abstractions is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Changes from Previous Version

No structural changes between v10.0.12 and v10.0.13.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.