WebHostBuilderIISExtensions.UseIIS(IWebHostBuilder) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定伺服器在 AspNetCoreModule 後方執行時應該接聽的埠和基底路徑。 應用程式也會設定為擷取啟動錯誤。
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
參數
- hostBuilder
- IWebHostBuilder
要設定的 IWebHostBuilder。