Compartilhar via


WebHostBuilder.ConfigureAppConfiguration Método

Definição

Adiciona um delegado para configurar o IConfigurationBuilder que construirá um IConfiguration.

public:
 virtual 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
override this.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.

Implementações

Comentários

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

Aplica-se a