About 3,300 results
Open links in new tab
  1. Configuration - .NET | Microsoft Learn

    Feb 9, 2026 · Given one or more configuration sources, the IConfiguration type provides a unified view of the configuration data. Configuration is read-only, and the configuration pattern isn't designed to …

  2. Using IConfiguration in C# Class Library - Stack Overflow

    Since .NET 2.0, I had been using ConfigurationManager.AppSettings["emailAddress"]. However, I'm now trying to learn how to do it the new way via IConfiguration. My problem is, this is a class library. …

  3. ASP.NET Core - How to Use appsettings.json and IConfiguration

    Sep 11, 2025 · The most commonly used configuration file is appsettings.json, and the main way to read these settings in your application is through IConfiguration. In this article, we will explain in simple …

  4. ASP.NET IConfiguration - Using IConfiguration in ASP.NET - ZetCode

    Apr 3, 2025 · IConfiguration is the main interface for working with configuration in ASP.NET. It provides methods to read configuration values as strings, numbers, or complex objects.

  5. How to Setup IConfiguration in .NET 6 Stable Program.cs: Access ...

    Jan 16, 2026 · In .NET, the IConfiguration interface simplifies accessing these settings from sources like appsettings.json, environment variables, command-line arguments, and more.

  6. Ultimate Guide to Configuration in .NET Core: IConfiguration

    Sep 5, 2025 · Ultimate Guide to Configuration in .NET Core: IConfiguration, IOptions, and Strongly Typed Access We have multiple ways to read the configuration from appsettings.json or other …

  7. IConfiguration.cs - GitHub

    /// Represents a set of key/value application configuration properties. /// Gets or sets a configuration value. /// Gets a configuration sub-section with the specified key. /// This method will never return …

  8. How to Get a JSON Array Using IConfiguration in ASP.NET Core

    Aug 29, 2023 · In this article, we will explore how to get JSON array using IConfiguration with GetSection, GetChildren, and Get methods in ASP.NET Core

  9. How to Bind IConfiguration to C# Record Types: Solving the ...

    Nov 18, 2025 · This blog dives into why binding `IConfiguration` to records fails, solutions to the parameterless constructor problem, and when records are (or aren’t) suitable for configuration.

  10. Using IConfiguration in ASP.Net Core - ASPSnippets

    Dec 13, 2021 · Microsoft has replaced System.Configuration class with IConfiguration interface in .Net Core 2.0 onwards and this article will illustrate how to use IConfiguration interface in ASP.Net Core.