Bagikan melalui


IWebHostBuilder.ConfigureAppConfiguration Metode

Definisi

Menambahkan delegasi untuk mengonfigurasi IConfigurationBuilder yang akan membangun IConfiguration.

public:
 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
Public Function ConfigureAppConfiguration (configureDelegate As Action(Of WebHostBuilderContext, IConfigurationBuilder)) As IWebHostBuilder

Parameter

configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

Delegasi untuk mengonfigurasi IConfigurationBuilder yang akan digunakan untuk membangun IConfiguration.

Mengembalikan

IWebHostBuilder.

Keterangan

IConfiguration dan ILoggerFactory pada WebHostBuilderContext yang tidak diinisialisasi pada tahap ini. IConfigurationBuilder telah diisi sebelumnya dengan pengaturan IWebHostBuilder.

Berlaku untuk