GenericHostWebHostBuilderExtensions.ConfigureWebHost Methode

Definition

Überlädt

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

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

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

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

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

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

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder)) As IHostBuilder

Parameter

builder
IHostBuilder

Die IHostBuilder, der IWebHostBuilder hinzugefügt werden soll.

configure
Action<IWebHostBuilder>

Der Delegat, der die IWebHostBuilder-Schnittstelle konfiguriert.

Gibt zurück

Die IHostBuilder.

Gilt für:

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

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

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure, Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> configureWebHostBuilder);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> * Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder), configureWebHostBuilder As Action(Of WebHostBuilderOptions)) As IHostBuilder

Parameter

builder
IHostBuilder

Die IHostBuilder, der IWebHostBuilder hinzugefügt werden soll.

configure
Action<IWebHostBuilder>

Der Delegat, der die IWebHostBuilder-Schnittstelle konfiguriert.

configureWebHostBuilder
Action<WebHostBuilderOptions>

Der Delegat, der die WebHostBuilderOptions-Schnittstelle konfiguriert.

Gibt zurück

Die IHostBuilder.

Gilt für: