Language

WebHostBuilderExtensions.Configure Method

Definition

Overloads

Name Description
Configure(IWebHostBuilder, Action)

Specify the startup method to be used to configure the web application.

Configure(IWebHostBuilder, Action)

Specify the startup method to be used to configure the web application.

Configure(IWebHostBuilder, Action)

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

Specify the startup method to be used to configure the web application.

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

Public Function Configure (hostBuilder As IWebHostBuilder, configureApp As Action(Of IApplicationBuilder)) As IWebHostBuilder

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

configureApp
Action<IApplicationBuilder>

The delegate that configures the IApplicationBuilder.

Returns

The IWebHostBuilder.

Applies to

Configure(IWebHostBuilder, Action)

Source:
WebHostBuilderExtensions.cs

Specify the startup method to be used to configure the web application.

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

Public Function Configure (hostBuilder As IWebHostBuilder, configureApp As Action(Of WebHostBuilderContext, IApplicationBuilder)) As IWebHostBuilder

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

configureApp
Action<WebHostBuilderContext,IApplicationBuilder>

The delegate that configures the IApplicationBuilder.

Returns

The IWebHostBuilder.

Applies to