Compartir a través de


IWebHostBuilder.ConfigureAppConfiguration Método

Definición

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

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>

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

Devoluciones

IWebHostBuilder.

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