Compartilhar via


WebHostBuilderIISExtensions.UseIIS(IWebHostBuilder) Método

Definição

Configura a porta e o caminho base em que o servidor deve escutar ao executar atrás de AspNetCoreModule. O aplicativo também será configurado para capturar erros de inicialização.

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

Parâmetros

hostBuilder
IWebHostBuilder

O IWebHostBuilder a ser configurado.

Retornos

O IWebHostBuilder.

Aplica-se a