Partager via


GenericHostWebHostBuilderExtensions.ConfigureWebHost Méthode

Définition

Surcharges

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

Ajoute et configure une application web ASP.NET Core.

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

Ajoute et configure une application web ASP.NET Core.

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

Source:
GenericHostWebHostBuilderExtensions.cs

Ajoute et configure une application 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

Paramètres

builder
IHostBuilder

IHostBuilder auquel ajouter IWebHostBuilder.

configure
Action<IWebHostBuilder>

Délégué qui configure le IWebHostBuilder.

Retours

L’IHostBuilderopérateur

S’applique à

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

Source:
GenericHostWebHostBuilderExtensions.cs

Ajoute et configure une application 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

Paramètres

builder
IHostBuilder

IHostBuilder auquel ajouter IWebHostBuilder.

configure
Action<IWebHostBuilder>

Délégué qui configure le IWebHostBuilder.

configureWebHostBuilder
Action<WebHostBuilderOptions>

Délégué qui configure le WebHostBuilderOptions.

Retours

L’IHostBuilderopérateur

S’applique à