ChainedBuilderExtensions.AddConfiguration Method

Definition

Overloads

AddConfiguration(IConfigurationBuilder, IConfiguration)

Adds an existing configuration to configurationBuilder.

AddConfiguration(IConfigurationBuilder, IConfiguration, Boolean)

Adds an existing configuration to configurationBuilder.

AddConfiguration(IConfigurationBuilder, IConfiguration)

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

IConfigurationBuilder

The IConfigurationBuilder.

Applies to

AddConfiguration(IConfigurationBuilder, IConfiguration, Boolean)

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.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

Applies to