Compartir a través de


WebHostBuilderExtensions.ConfigureAppConfiguration Método

Definición

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

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

Parámetros

hostBuilder
IWebHostBuilder

El objeto IWebHostBuilder que se va a configurar.

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