共用方式為


ConfigurationBuilder.Add(IConfigurationSource) 方法

定義

新增組態來源。

public:
 virtual 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
override this.Add : Microsoft.Extensions.Configuration.IConfigurationSource -> Microsoft.Extensions.Configuration.IConfigurationBuilder
Public Function Add (source As IConfigurationSource) As IConfigurationBuilder

參數

source
IConfigurationSource

要新增的組態來源。

傳回

相同的 IConfigurationBuilder

實作

適用於