WebHostBuilderHttpSysExtensions.UseHttpSys 方法

定義

多載

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

要設定的 AspNetCore >iwebhostbuilder。

傳回

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

要設定的 AspNetCore >iwebhostbuilder。

options
Action<HttpSysOptions>

用來設定 Http.sys 選項的回呼。

傳回

IWebHostBuilder

參數物件的參考 IWebHostBuilder

適用於