ConfigurationManager.IConfigurationBuilder.Add(IConfigurationSource) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加一个新的配置源。
virtual Microsoft::Extensions::Configuration::IConfigurationBuilder ^ Microsoft.Extensions.Configuration.IConfigurationBuilder.Add(Microsoft::Extensions::Configuration::IConfigurationSource ^ source) = Microsoft::Extensions::Configuration::IConfigurationBuilder::Add;
Microsoft.Extensions.Configuration.IConfigurationBuilder IConfigurationBuilder.Add (Microsoft.Extensions.Configuration.IConfigurationSource source);
abstract member Microsoft.Extensions.Configuration.IConfigurationBuilder.Add : Microsoft.Extensions.Configuration.IConfigurationSource -> Microsoft.Extensions.Configuration.IConfigurationBuilder
override this.Microsoft.Extensions.Configuration.IConfigurationBuilder.Add : Microsoft.Extensions.Configuration.IConfigurationSource -> Microsoft.Extensions.Configuration.IConfigurationBuilder
Function Add (source As IConfigurationSource) As IConfigurationBuilder Implements IConfigurationBuilder.Add
参数
- source
- IConfigurationSource
要添加的配置源。
返回
与添加的配置源相同 IConfigurationBuilder 。