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

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureAppConfiguration(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Configuration::IConfigurationBuilder ^> ^ configureDelegate);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureAppConfiguration (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.Extensions.Configuration.IConfigurationBuilder> configureDelegate);
static member ConfigureAppConfiguration : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.Extensions.Configuration.IConfigurationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureAppConfiguration (hostBuilder As IWebHostBuilder, configureDelegate As Action(Of IConfigurationBuilder)) As IWebHostBuilder

Parameters

configureDelegate
Action<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