Compartir a través de


WebHostBuilder.ConfigureAppConfiguration Método

Definición

Agrega un delegado para configurar que IConfigurationBuilder construirá un IConfigurationobjeto .

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>

Delegado para configurar el IConfigurationBuilder objeto que se usará para construir un IConfigurationobjeto .

Devoluciones

IWebHostBuilder.

Implementaciones

Comentarios

y IConfigurationILoggerFactory en el WebHostBuilderContext elemento no se inicializan en esta fase. IConfigurationBuilder se rellena previamente con la configuración de IWebHostBuilder.

Se aplica a