WebHostBuilder.ConfigureAppConfiguration Metodo

Definizione

Aggiunge un delegato per la configurazione di IConfigurationBuilder che creerà un IConfigurationoggetto .

public:
 virtual 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
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

Parametri

configureDelegate
Action<WebHostBuilderContext,IConfigurationBuilder>

Delegato per la configurazione dell'oggetto IConfigurationBuilder che verrà usato per costruire un IConfigurationoggetto .

Restituisce

Oggetto IWebHostBuilder.

Implementazioni

Commenti

L'oggetto IConfiguration e ILoggerFactory sul WebHostBuilderContext sono non inizializzate in questa fase. L'oggetto IConfigurationBuilderIWebHostBuilderè pre-popolato con le impostazioni di .

Si applica a