Freigeben über


ISupportsConfigureWebHost.ConfigureWebHost Methode

Definition

Fügt eine ASP.NET Core Webanwendung hinzu und konfiguriert sie.

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

Parameter

configure
Action<IWebHostBuilder>

Der Delegat, der die IWebHostBuilder-Schnittstelle konfiguriert.

configureOptions
Action<WebHostBuilderOptions>

Der Delegat, der die WebHostBuilderOptions-Schnittstelle konfiguriert.

Gibt zurück

Die IHostBuilder.

Gilt für: