Partager via


ISupportsConfigureWebHost.ConfigureWebHost Méthode

Définition

Ajoute et configure une application web ASP.NET Core.

public Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure, Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> configureOptions);
abstract member ConfigureWebHost : Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> * Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Function ConfigureWebHost (configure As Action(Of IWebHostBuilder), configureOptions As Action(Of WebHostBuilderOptions)) As IHostBuilder

Paramètres

configure
Action<IWebHostBuilder>

Délégué qui configure le IWebHostBuilder.

configureOptions
Action<WebHostBuilderOptions>

Délégué qui configure le WebHostBuilderOptions.

Retours

L’IHostBuilderopérateur

S’applique à