Bagikan melalui


WebHostBuilderIISExtensions.UseIIS(IWebHostBuilder) Metode

Definisi

Mengonfigurasi port dan jalur dasar yang harus didengarkan server saat berjalan di belakang AspNetCoreModule. Aplikasi ini juga akan dikonfigurasi untuk menangkap kesalahan startup.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseIIS(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseIIS (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseIIS : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseIIS (hostBuilder As IWebHostBuilder) As IWebHostBuilder

Parameter

hostBuilder
IWebHostBuilder

untuk IWebHostBuilder mengonfigurasi.

Mengembalikan

IWebHostBuilder.

Berlaku untuk