Partager via


WebHostBuilderExtensions.Configure Méthode

Définition

Surcharges

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Spécifiez la méthode de démarrage à utiliser pour configurer l’application web.

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Spécifiez la méthode de démarrage à utiliser pour configurer l’application web.

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs

Spécifiez la méthode de démarrage à utiliser pour configurer l’application 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

Paramètres

hostBuilder
IWebHostBuilder

IWebHostBuilder à configurer.

configureApp
Action<IApplicationBuilder>

Délégué qui configure le IApplicationBuilder.

Retours

L’IWebHostBuilderopérateur

S’applique à

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Source:
WebHostBuilderExtensions.cs

Spécifiez la méthode de démarrage à utiliser pour configurer l’application 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

Paramètres

hostBuilder
IWebHostBuilder

IWebHostBuilder à configurer.

configureApp
Action<WebHostBuilderContext,IApplicationBuilder>

Délégué qui configure le IApplicationBuilder.

Retours

L’IWebHostBuilderopérateur

S’applique à