IConfigurationBuilder.Add(IConfigurationSource) 方法

定义

添加一个新的配置源。

public:
 Microsoft::Extensions::Configuration::IConfigurationBuilder ^ Add(Microsoft::Extensions::Configuration::IConfigurationSource ^ source);
public Microsoft.Extensions.Configuration.IConfigurationBuilder Add (Microsoft.Extensions.Configuration.IConfigurationSource source);
abstract member Add : Microsoft.Extensions.Configuration.IConfigurationSource -> Microsoft.Extensions.Configuration.IConfigurationBuilder
Public Function Add (source As IConfigurationSource) As IConfigurationBuilder

参数

source
IConfigurationSource

要添加的配置源。

返回

相同的 IConfigurationBuilder

适用于