共用方式為


HostApplicationBuilderSettings.Configuration 屬性

定義

取得或設定要加入至 Configuration的初始組態來源。

public:
 property Microsoft::Extensions::Configuration::ConfigurationManager ^ Configuration { Microsoft::Extensions::Configuration::ConfigurationManager ^ get(); void set(Microsoft::Extensions::Configuration::ConfigurationManager ^ value); };
public Microsoft.Extensions.Configuration.ConfigurationManager? Configuration { get; set; }
member this.Configuration : Microsoft.Extensions.Configuration.ConfigurationManager with get, set
Public Property Configuration As ConfigurationManager

屬性值

備註

這些來源可以透過使用HostDefaults金鑰來影響 Environment 。 處置建置 IHost 的 會處置 ConfigurationManager

適用於