ChainedBuilderExtensions.AddConfiguration 方法

定义

重载

AddConfiguration(IConfigurationBuilder, IConfiguration)

将现有配置添加到 configurationBuilder

AddConfiguration(IConfigurationBuilder, IConfiguration, Boolean)

将现有配置添加到 configurationBuilder

AddConfiguration(IConfigurationBuilder, IConfiguration)

Source:
ChainedBuilderExtensions.cs
Source:
ChainedBuilderExtensions.cs
Source:
ChainedBuilderExtensions.cs
Source:
ChainedBuilderExtensions.cs

将现有配置添加到 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

参数

configurationBuilder
IConfigurationBuilder

要添加到的 IConfigurationBuilder

config
IConfiguration

要添加的 IConfiguration

返回

IConfigurationBuilder

适用于

AddConfiguration(IConfigurationBuilder, IConfiguration, Boolean)

Source:
ChainedBuilderExtensions.cs
Source:
ChainedBuilderExtensions.cs
Source:
ChainedBuilderExtensions.cs
Source:
ChainedBuilderExtensions.cs

将现有配置添加到 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

参数

configurationBuilder
IConfigurationBuilder

要添加到的 IConfigurationBuilder

config
IConfiguration

要添加的 IConfiguration

shouldDisposeConfiguration
Boolean

在处置配置提供程序时是否应处置配置。

返回

IConfigurationBuilder

适用于