ChainedBuilderExtensions.AddConfiguration 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddConfiguration(IConfigurationBuilder, IConfiguration) |
将现有配置添加到 |
AddConfiguration(IConfigurationBuilder, IConfiguration, Boolean) |
将现有配置添加到 |
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。
返回
适用于
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
在处置配置提供程序时是否应处置配置。