Compartilhar via


ISupportsConfigureWebHost.ConfigureWebHost Método

Definição

Adiciona e configura um aplicativo Web ASP.NET Core.

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

Parâmetros

configure
Action<IWebHostBuilder>

O delegado que configura o IWebHostBuilder.

configureOptions
Action<WebHostBuilderOptions>

O delegado que configura o WebHostBuilderOptions.

Retornos

O IHostBuilder.

Aplica-se a