WebHostBuilderHttpSysExtensions.UseHttpSys 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseHttpSys(IWebHostBuilder) |
將 Http.sys 指定為 Web 主機要使用的伺服器。 |
UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>) |
將 Http.sys 指定為 Web 主機要使用的伺服器。 |
UseHttpSys(IWebHostBuilder)
將 Http.sys 指定為 Web 主機要使用的伺服器。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseHttpSys(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseHttpSys (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseHttpSys : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseHttpSys (hostBuilder As IWebHostBuilder) As IWebHostBuilder
參數
- hostBuilder
- IWebHostBuilder
要設定的 Microsoft.AspNetCore.Hosting.IWebHostBuilder。
傳回
參數物件的參考 IWebHostBuilder 。
適用於
UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>)
將 Http.sys 指定為 Web 主機要使用的伺服器。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseHttpSys(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Server::HttpSys::HttpSysOptions ^> ^ options);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseHttpSys (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.HttpSys.HttpSysOptions> options);
static member UseHttpSys : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.HttpSys.HttpSysOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseHttpSys (hostBuilder As IWebHostBuilder, options As Action(Of HttpSysOptions)) As IWebHostBuilder
參數
- hostBuilder
- IWebHostBuilder
要設定的 Microsoft.AspNetCore.Hosting.IWebHostBuilder。
- options
- Action<HttpSysOptions>
設定 Http.sys 選項的回呼。
傳回
參數物件的參考 IWebHostBuilder 。