GenericHostWebHostBuilderExtensions.ConfigureWebHost Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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>)
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
Berlaku untuk
ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)
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.