Dela via


ISupportsConfigureWebHost.ConfigureWebHost Method

Definition

Adds and configures an ASP.NET Core web application.

public Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure, Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> configureOptions);
abstract member ConfigureWebHost : Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> * Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Function ConfigureWebHost (configure As Action(Of IWebHostBuilder), configureOptions As Action(Of WebHostBuilderOptions)) As IHostBuilder

Parameters

configure
Action<IWebHostBuilder>

The delegate that configures the IWebHostBuilder.

configureOptions
Action<WebHostBuilderOptions>

The delegate that configures the WebHostBuilderOptions.

Returns

The IHostBuilder.

Applies to