Condividi tramite


WebHostBuilderExtensions.Configure Metodo

Definizione

Overload

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Specificare il metodo di avvio da usare per configurare l'applicazione Web.

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Specificare il metodo di avvio da usare per configurare l'applicazione Web.

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Origine:
WebHostBuilderExtensions.cs
Origine:
WebHostBuilderExtensions.cs
Origine:
WebHostBuilderExtensions.cs

Specificare il metodo di avvio da usare per configurare l'applicazione Web.

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

Parametri

hostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder da configurare.

configureApp
Action<IApplicationBuilder>

Delegato che configura IApplicationBuilder.

Restituisce

Oggetto IWebHostBuilder.

Si applica a

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Origine:
WebHostBuilderExtensions.cs

Specificare il metodo di avvio da usare per configurare l'applicazione Web.

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

Parametri

hostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder da configurare.

Restituisce

Oggetto IWebHostBuilder.

Si applica a