Partager via


ConfigureWebHostBuilder.ConfigureAppConfiguration Méthode

Définition

Ajoute un délégué pour la configuration de IConfigurationBuilder qui va construire un 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

Paramètres

configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

Délégué pour la configuration du IConfigurationBuilder qui sera utilisé pour construire un IConfiguration.

Retours

L’IWebHostBuilderopérateur

Implémente

S’applique à