Sdílet prostřednictvím


ISupportsConfigureWebHost.ConfigureWebHost Metoda

Definice

Přidá a nakonfiguruje ASP.NET Core webovou aplikaci.

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

Parametry

configure
Action<IWebHostBuilder>

Delegát, který konfiguruje IWebHostBuilder.

configureOptions
Action<WebHostBuilderOptions>

Delegát, který konfiguruje WebHostBuilderOptions.

Návraty

Hodnota IHostBuilder

Platí pro