ChainedBuilderExtensions.AddConfiguration Method
Definition
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.
Overloads
AddConfiguration(IConfigurationBuilder, IConfiguration) |
Adds an existing configuration to |
AddConfiguration(IConfigurationBuilder, IConfiguration, Boolean) |
Adds an existing configuration to |
AddConfiguration(IConfigurationBuilder, IConfiguration)
- Source:
- ChainedBuilderExtensions.cs
- Source:
- ChainedBuilderExtensions.cs
- Source:
- ChainedBuilderExtensions.cs
- Source:
- ChainedBuilderExtensions.cs
Adds an existing configuration to configurationBuilder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddConfiguration(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ configurationBuilder, Microsoft::Extensions::Configuration::IConfiguration ^ config);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddConfiguration (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, Microsoft.Extensions.Configuration.IConfiguration config);
static member AddConfiguration : Microsoft.Extensions.Configuration.IConfigurationBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddConfiguration (configurationBuilder As IConfigurationBuilder, config As IConfiguration) As IConfigurationBuilder
Parameters
- configurationBuilder
- IConfigurationBuilder
The IConfigurationBuilder to add to.
- config
- IConfiguration
The IConfiguration to add.
Returns
Applies to
AddConfiguration(IConfigurationBuilder, IConfiguration, Boolean)
- Source:
- ChainedBuilderExtensions.cs
- Source:
- ChainedBuilderExtensions.cs
- Source:
- ChainedBuilderExtensions.cs
- Source:
- ChainedBuilderExtensions.cs
Adds an existing configuration to configurationBuilder
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddConfiguration(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ configurationBuilder, Microsoft::Extensions::Configuration::IConfiguration ^ config, bool shouldDisposeConfiguration);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddConfiguration (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, Microsoft.Extensions.Configuration.IConfiguration config, bool shouldDisposeConfiguration);
static member AddConfiguration : Microsoft.Extensions.Configuration.IConfigurationBuilder * Microsoft.Extensions.Configuration.IConfiguration * bool -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddConfiguration (configurationBuilder As IConfigurationBuilder, config As IConfiguration, shouldDisposeConfiguration As Boolean) As IConfigurationBuilder
Parameters
- configurationBuilder
- IConfigurationBuilder
The IConfigurationBuilder to add to.
- config
- IConfiguration
The IConfiguration to add.
- shouldDisposeConfiguration
- Boolean
Whether the configuration should get disposed when the configuration provider is disposed.