Bagikan melalui


ConfigureWebHostBuilder.ConfigureAppConfiguration Metode

Definisi

Menambahkan delegasi untuk mengonfigurasi IConfigurationBuilder yang akan membuat IConfiguration.

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

Parameter

configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

Delegasi untuk mengonfigurasi IConfigurationBuilder yang akan digunakan untuk membuat IConfiguration.

Mengembalikan

IWebHostBuilder.

Penerapan

Berlaku untuk