Compartilhar via


GenericHostWebHostBuilderExtensions.ConfigureWebHost Método

Definição

Sobrecargas

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

Adiciona e configura um aplicativo Web ASP.NET Core.

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

Adiciona e configura um aplicativo Web ASP.NET Core.

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

Origem:
GenericHostWebHostBuilderExtensions.cs

Adiciona e configura um aplicativo Web ASP.NET Core.

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder)) As IHostBuilder

Parâmetros

builder
IHostBuilder

O IHostBuilder ao qual adicionar o IWebHostBuilder.

configure
Action<IWebHostBuilder>

O delegado que configura o IWebHostBuilder.

Retornos

O IHostBuilder.

Aplica-se a

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

Origem:
GenericHostWebHostBuilderExtensions.cs

Adiciona e configura um aplicativo Web ASP.NET Core.

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure, Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> configureWebHostBuilder);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> * Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder), configureWebHostBuilder As Action(Of WebHostBuilderOptions)) As IHostBuilder

Parâmetros

builder
IHostBuilder

O IHostBuilder ao qual adicionar o IWebHostBuilder.

configure
Action<IWebHostBuilder>

O delegado que configura o IWebHostBuilder.

configureWebHostBuilder
Action<WebHostBuilderOptions>

O delegado que configura o WebHostBuilderOptions.

Retornos

O IHostBuilder.

Aplica-se a