IConfigurationBuilder Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a type used to build application configuration.
public interface class IConfigurationBuilder
public interface IConfigurationBuilder
type IConfigurationBuilder = interface
Public Interface IConfigurationBuilder
- Derived
Properties |
Gets a key/value collection that can be used to share data between the IConfigurationBuilder and the registered IConfigurationSources. |
Sources |
Gets the sources used to obtain configuration values |
Add(IConfiguration |
Adds a new configuration source. |
Build() |
Builds an IConfiguration with keys and values from the set of sources registered in Sources. |
Add |
Registers a configuration provider for application metadata. |
Add |
Adds an existing configuration to |
Add |
Adds an existing configuration to |
Add |
Adds an IConfigurationProvider that reads configuration values from the command line. |
Add |
Adds a CommandLineConfigurationProviderIConfigurationProvider that reads configuration values from the command line using the specified switch mappings. |
Add |
Adds a CommandLineConfigurationProviderIConfigurationProvider that reads configuration values from the command line. |
Add<TSource>(IConfiguration |
Adds a new configuration source. |
Add |
Adds an IConfigurationProvider that reads configuration values from environment variables. |
Add |
Adds an IConfigurationProvider that reads configuration values from environment variables with a specified prefix. |
Add |
Adds an IConfigurationProvider that reads configuration values from environment variables. |
Get |
Gets a default action to be invoked for file-based providers when an error occurs. |
Get |
Gets the default IFileProvider to be used for file-based providers. |
Set |
Sets the FileProvider for file-based providers to a PhysicalFileProvider with the base path. |
Set |
Sets a default action to be invoked for file-based providers when an error occurs. |
Set |
Sets the default IFileProvider to be used for file-based providers. |
Add |
Adds a INI configuration source to |
Add |
Adds a INI configuration source to |
Add |
Adds the INI configuration provider at |
Add |
Adds the INI configuration provider at |
Add |
Adds the INI configuration provider at |
Add |
Adds a INI configuration source to |
Add |
Adds a JSON configuration source to |
Add |
Adds a JSON configuration source to |
Add |
Adds the JSON configuration provider at |
Add |
Adds the JSON configuration provider at |
Add |
Adds the JSON configuration provider at |
Add |
Adds a JSON configuration source to |
Add |
Adds configuration using files from a directory. File names are used as the key, file contents are used as the value. |
Add |
Adds configuration using files from a directory. File names are used as the key, file contents are used as the value. |
Add |
Adds configuration using files from a directory. File names are used as the key, file contents are used as the value. |
Add |
Adds configuration using files from a directory. File names are used as the key, file contents are used as the value. |
Add |
Adds the memory configuration provider to |
Add |
Adds the memory configuration provider to |
Add |
Adds the user secrets configuration source. This searches A user secrets ID is unique value used to store and identify a collection of secret configuration values. |
Add |
Adds the user secrets configuration source. This searches A user secrets ID is unique value used to store and identify a collection of secret configuration values. |
Add |
Adds the user secrets configuration source. This searches A user secrets ID is unique value used to store and identify a collection of secret configuration values. |
Add |
Adds the user secrets configuration source with specified user secrets ID. A user secrets ID is unique value used to store and identify a collection of secret configuration values. |
Add |
Adds the user secrets configuration source with specified user secrets ID. A user secrets ID is unique value used to store and identify a collection of secret configuration values. |
Add |
Adds the user secrets configuration source. Searches the assembly that contains type A user secrets ID is unique value used to store and identify a collection of secret configuration values. |
Add |
Adds the user secrets configuration source. Searches the assembly that contains type A user secrets ID is unique value used to store and identify a collection of secret configuration values. |
Add |
Adds the user secrets configuration source. Searches the assembly that contains type A user secrets ID is unique value used to store and identify a collection of secret configuration values. |
Add |
Adds an XML configuration source to |
Add |
Adds an XML configuration source to |
Add |
Adds the XML configuration provider at |
Add |
Adds the XML configuration provider at |
Add |
Adds the XML configuration provider at |
Add |
Adds an XML configuration source to |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: