Microsoft.Extensions.Configuration.Abstractions 9.0.0

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

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.

Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.Abstractions.

Packages Downloads
SanedBuildingBlocks
This package built for OIG-Saned
3,447
SanedBuildingBlocks
This package built for OIG-Saned
2,467
SanedBuildingBlocks
This package built for OIG-Saned
920
SanedBuildingBlocks
This package built for OIG-Saned
843
SanedBuildingBlocks
This package built for OIG-Saned
770
SanedBuildingBlocks
This package built for OIG-Saned
655
SanedBuildingBlocks
This package built for OIG-Saned
464
SanedBuildingBlocks
This package built for OIG-Saned
431
SanedBuildingBlocks
This package built for OIG-Saned
359
SanedBuildingBlocks
This package built for OIG-Saned
285
SanedBuildingBlocks
This package built for OIG-Saned
276
SanedBuildingBlocks
This package built for OIG-Saned
240
SanedBuildingBlocks
This package built for OIG-Saned
237
SanedBuildingBlocks
This package built for OIG-Saned
233
SanedBuildingBlocks
This package built for OIG-Saned
202
SanedBuildingBlocks
This package built for OIG-Saned
199
SanedBuildingBlocks
This package built for OIG-Saned
195
SanedBuildingBlocks
This package built for OIG-Saned
193
SanedBuildingBlocks
This package built for OIG-Saned
192
SanedBuildingBlocks
This package built for OIG-Saned
136

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 8.0

.NET 9.0

.NET Standard 2.0

Version Downloads Last updated
9.0.0 26 12/01/2024
6.0.0 18 06/15/2023
5.0.0 19 06/16/2023
3.1.32 23 02/18/2025
3.1.31 20 02/18/2025
3.1.30 20 02/18/2025
3.1.29 21 02/18/2025
3.1.28 19 02/18/2025
3.1.27 19 02/18/2025
3.1.26 21 02/18/2025
3.1.25 21 02/18/2025
3.1.24 19 02/18/2025
3.1.23 20 02/18/2025
3.1.22 20 02/18/2025
3.1.21 20 02/18/2025
3.1.20 20 02/18/2025
3.1.19 21 02/18/2025
3.1.18 19 02/18/2025
3.1.17 20 02/18/2025
3.1.16 20 02/18/2025
3.1.15 21 02/18/2025
3.1.14 21 02/18/2025
3.1.13 20 02/18/2025
3.1.12 19 02/18/2025
3.1.11 20 02/18/2025
3.1.10 19 02/18/2025
3.1.8 22 06/26/2023
3.1.5 17 08/16/2023
3.1.0 19 10/02/2023
3.0.0 21 08/16/2023
2.0.0 23 06/16/2023