ChainedBuilderExtensions.AddConfiguration 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddConfiguration(IConfigurationBuilder, IConfiguration) |
將現有組態新增至 |
AddConfiguration(IConfigurationBuilder, IConfiguration, Boolean) |
將現有組態新增至 |
AddConfiguration(IConfigurationBuilder, IConfiguration)
將現有組態新增至 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)
將現有組態新增至 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
是否應在處置組態提供者時,一併處置組態。