HostingAbstractionsWebHostBuilderExtensions.PreferHostingUrls Método

Definición

Indique si el host debe escuchar las direcciones URL configuradas en en IWebHostBuilder lugar de las configuradas en .IServer

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ PreferHostingUrls(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, bool preferHostingUrls);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder PreferHostingUrls (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, bool preferHostingUrls);
static member PreferHostingUrls : Microsoft.AspNetCore.Hosting.IWebHostBuilder * bool -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function PreferHostingUrls (hostBuilder As IWebHostBuilder, preferHostingUrls As Boolean) As IWebHostBuilder

Parámetros

hostBuilder
IWebHostBuilder

El objeto IWebHostBuilder que se va a configurar.

preferHostingUrls
Boolean

true es para preferir las direcciones URL configuradas en ; de IWebHostBuilderlo contrario false, es .

Devoluciones

IWebHostBuilder.

Se aplica a