共用方式為


WebHostBuilderIISExtensions.UseIISIntegration(IWebHostBuilder) 方法

定義

設定伺服器在 AspNetCoreModule 後方執行時應該接聽的埠和基底路徑。 應用程式也會設定為擷取啟動錯誤。

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseIISIntegration (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseIISIntegration : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseIISIntegration (hostBuilder As IWebHostBuilder) As IWebHostBuilder

參數

hostBuilder
IWebHostBuilder

傳回

適用於