IWebHostBuilder.ConfigureAppConfiguration 方法

定义

添加一个委托,用于配置 IConfigurationBuilder 将构造 的 IConfiguration

public:
 Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureAppConfiguration(Action<Microsoft::AspNetCore::Hosting::WebHostBuilderContext ^, Microsoft::Extensions::Configuration::IConfigurationBuilder ^> ^ configureDelegate);
public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureAppConfiguration (Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.Extensions.Configuration.IConfigurationBuilder> configureDelegate);
abstract member ConfigureAppConfiguration : Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.Extensions.Configuration.IConfigurationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function ConfigureAppConfiguration (configureDelegate As Action(Of WebHostBuilderContext, IConfigurationBuilder)) As IWebHostBuilder

参数

configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

用于配置 IConfigurationBuilder 的委托,该委托将用于构造 IConfiguration

返回

IWebHostBuilder

注解

IConfiguration上的 WebHostBuilderContextILoggerFactory 在此阶段未初始化。 使用 IConfigurationBuilder 的设置预先填充 。IWebHostBuilder

适用于