Compartilhar via


IWebHostBuilder.ConfigureAppConfiguration Método

Definição

Adiciona um delegado para configurar o IConfigurationBuilder que construirá um 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

Parâmetros

configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

O delegado para configurar o IConfigurationBuilder que será usado para construir um IConfiguration.

Retornos

O IWebHostBuilder.

Comentários

O IConfiguration e ILoggerFactory no WebHostBuilderContext não são inicializados nesta fase. O IConfigurationBuilder é preenchido previamente com as configurações do IWebHostBuilder.

Aplica-se a