WebHostBuilder.ConfigureAppConfiguration(Action<WebHostBuilderContext,IConfigurationBuilder>) Method

Definition

Adds a delegate for configuring the IConfigurationBuilder that will construct an IConfiguration.

public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureAppConfiguration (Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.Extensions.Configuration.IConfigurationBuilder> configureDelegate);
Parameters
configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

The delegate for configuring the IConfigurationBuilder that will be used to construct an IConfiguration.

Returns

Remarks

The IConfiguration and ILoggerFactory on the WebHostBuilderContext are uninitialized at this stage. The IConfigurationBuilder is pre-populated with the settings of the IWebHostBuilder.

Applies to