共用方式為


WebHostBuilderHttpSysExtensions.UseHttpSys 方法

定義

多載

UseHttpSys(IWebHostBuilder)

將 Http.sys 指定為 Web 主機要使用的伺服器。

UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>)

將 Http.sys 指定為 Web 主機要使用的伺服器。

UseHttpSys(IWebHostBuilder)

來源:
WebHostBuilderHttpSysExtensions.cs
來源:
WebHostBuilderHttpSysExtensions.cs
來源:
WebHostBuilderHttpSysExtensions.cs

將 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>)

來源:
WebHostBuilderHttpSysExtensions.cs
來源:
WebHostBuilderHttpSysExtensions.cs
來源:
WebHostBuilderHttpSysExtensions.cs

將 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

適用於