Freigeben über


ConfigureWebHostBuilder.ConfigureAppConfiguration Methode

Definition

Fügt einen Delegaten zum Konfigurieren von hinzu, der IConfigurationBuilder eine IConfigurationerstellt.

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>

Der Delegat zum Konfigurieren von, der IConfigurationBuilder zum Erstellen eines IConfigurationverwendet wird.

Gibt zurück

Die IWebHostBuilder.

Implementiert

Gilt für: