共用方式為


ConfigureWebHostBuilder.ConfigureAppConfiguration 方法

定義

加入用來設定 的委派, IConfigurationBuilder 以建構 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

參數

configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

用來設定 IConfigurationBuilder 的委派,將用來建構 IConfiguration

傳回

IWebHostBuilder

實作

適用於