Udostępnij za pośrednictwem


WebHostBuilderExtensions.Configure Metoda

Definicja

Przeciążenia

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Określ metodę uruchamiania, która ma być używana do konfigurowania aplikacji internetowej.

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Określ metodę uruchamiania, która ma być używana do konfigurowania aplikacji internetowej.

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs

Określ metodę uruchamiania, która ma być używana do konfigurowania aplikacji internetowej.

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

Parametry

hostBuilder
IWebHostBuilder

Element do skonfigurowania IWebHostBuilder .

configureApp
Action<IApplicationBuilder>

Delegat, który konfiguruje element IApplicationBuilder.

Zwraca

Element IWebHostBuilder.

Dotyczy

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Źródło:
WebHostBuilderExtensions.cs

Określ metodę uruchamiania, która ma być używana do konfigurowania aplikacji internetowej.

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

Parametry

hostBuilder
IWebHostBuilder

Element do skonfigurowania IWebHostBuilder .

configureApp
Action<WebHostBuilderContext,IApplicationBuilder>

Delegat, który konfiguruje element IApplicationBuilder.

Zwraca

Element IWebHostBuilder.

Dotyczy