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。