共用方式為


ChainedBuilderExtensions.AddConfiguration 方法

定義

多載

AddConfiguration(IConfigurationBuilder, IConfiguration)

將現有組態新增至 configurationBuilder

AddConfiguration(IConfigurationBuilder, IConfiguration, Boolean)

將現有組態新增至 configurationBuilder

AddConfiguration(IConfigurationBuilder, IConfiguration)

來源:
ChainedBuilderExtensions.cs
來源:
ChainedBuilderExtensions.cs
來源:
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)

來源:
ChainedBuilderExtensions.cs
來源:
ChainedBuilderExtensions.cs
來源:
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

適用於