Sdílet prostřednictvím


WebHostBuilderExtensions.ConfigureAppConfiguration Metoda

Definice

Přidá delegáta pro konfiguraci IConfigurationBuilder , který vytvoří IConfiguration.

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

Parametry

hostBuilder
IWebHostBuilder

Nakonfigurujete IWebHostBuilder .

configureDelegate
Action<IConfigurationBuilder>

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

Návraty

Hodnota IWebHostBuilder

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