Bagikan melalui


GenericHostWebHostBuilderExtensions.ConfigureWebHost Metode

Definisi

Overload

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

Menambahkan dan mengonfigurasi aplikasi web ASP.NET Core.

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

Menambahkan dan mengonfigurasi aplikasi web ASP.NET Core.

ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)

Sumber:
GenericHostWebHostBuilderExtensions.cs

Menambahkan dan mengonfigurasi aplikasi 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

Parameter

builder
IHostBuilder

untuk IHostBuilder menambahkan ke IWebHostBuilder .

configure
Action<IWebHostBuilder>

Delegasi yang mengonfigurasi IWebHostBuilder.

Mengembalikan

IHostBuilder.

Berlaku untuk

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

Sumber:
GenericHostWebHostBuilderExtensions.cs

Menambahkan dan mengonfigurasi aplikasi 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

Parameter

builder
IHostBuilder

untuk IHostBuilder menambahkan ke IWebHostBuilder .

configure
Action<IWebHostBuilder>

Delegasi yang mengonfigurasi IWebHostBuilder.

configureWebHostBuilder
Action<WebHostBuilderOptions>

Delegasi yang mengonfigurasi WebHostBuilderOptions.

Mengembalikan

IHostBuilder.

Berlaku untuk