Udostępnij za pośrednictwem


WebHostBuilder.ConfigureAppConfiguration Metoda

Definicja

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

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>

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

Zwraca

Element IWebHostBuilder.

Implementuje

Uwagi

ILoggerFactory I IConfiguration na tym WebHostBuilderContext etapie są niezainicjowane. Element IConfigurationBuilder jest wstępnie wypełniony ustawieniami .IWebHostBuilder

Dotyczy