WebHostBuilder.ConfigureAppConfiguration Metoda

Definice

Přidá delegáta pro konfiguraci IConfigurationBuilder , který vytvoří 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

Parametry

configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

Delegát pro konfiguraci objektu IConfigurationBuilder , který se použije k vytvoření objektu IConfiguration.

Návraty

Hodnota IWebHostBuilder

Implementuje

Poznámky

V IConfiguration této fázi nejsou inicializovány a ILoggerFactoryWebHostBuilderContext na . Položka IConfigurationBuilder je předem vyplněna nastavením IWebHostBuilder.

Platí pro