Freigeben über


WebHostBuilderExtensions.Configure Methode

Definition

Überlädt

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Geben Sie die Startmethode an, die zum Konfigurieren der Webanwendung verwendet werden soll.

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Geben Sie die Startmethode an, die zum Konfigurieren der Webanwendung verwendet werden soll.

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Quelle:
WebHostBuilderExtensions.cs
Quelle:
WebHostBuilderExtensions.cs
Quelle:
WebHostBuilderExtensions.cs

Geben Sie die Startmethode an, die zum Konfigurieren der Webanwendung verwendet werden soll.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ Configure(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ configureApp);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder Configure (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configureApp);
static member Configure : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function Configure (hostBuilder As IWebHostBuilder, configureApp As Action(Of IApplicationBuilder)) As IWebHostBuilder

Parameter

hostBuilder
IWebHostBuilder

Die zu konfigurierende IWebHostBuilder-Schnittstelle.

configureApp
Action<IApplicationBuilder>

Der Delegat, der die IApplicationBuilder-Schnittstelle konfiguriert.

Gibt zurück

Die IWebHostBuilder.

Gilt für:

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Quelle:
WebHostBuilderExtensions.cs

Geben Sie die Startmethode an, die zum Konfigurieren der Webanwendung verwendet werden soll.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ Configure(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Hosting::WebHostBuilderContext ^, Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ configureApp);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder Configure (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.AspNetCore.Builder.IApplicationBuilder> configureApp);
static member Configure : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function Configure (hostBuilder As IWebHostBuilder, configureApp As Action(Of WebHostBuilderContext, IApplicationBuilder)) As IWebHostBuilder

Parameter

hostBuilder
IWebHostBuilder

Die zu konfigurierende IWebHostBuilder-Schnittstelle.

configureApp
Action<WebHostBuilderContext,IApplicationBuilder>

Der Delegat, der die IApplicationBuilder-Schnittstelle konfiguriert.

Gibt zurück

Die IWebHostBuilder.

Gilt für: