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

Definition

Adds a delegate for configuring the Microsoft.Extensions.Configuration.IConfigurationBuilder that will construct an 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

Parameters

configureDelegate
Action<WebHostBuilderContext,Microsoft.Extensions.Configuration.IConfigurationBuilder>

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

Returns

Remarks

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

Applies to