Udostępnij za pośrednictwem


ConfigureWebHostBuilder.ConfigureAppConfiguration Metoda

Definicja

Dodaje delegata do konfigurowania IConfigurationBuilder elementu , który utworzy IConfigurationobiekt .

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

Parametry

configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

Pełnomocnik do konfigurowania elementu , który będzie używany do konstruowania IConfigurationBuilder elementu IConfiguration.

Zwraca

Element IWebHostBuilder.

Implementuje

Dotyczy