Condividi tramite


HostingAbstractionsWebHostBuilderExtensions.PreferHostingUrls Metodo

Definizione

Indicare se l'host deve essere in ascolto sugli URL configurati invece di quelli configurati IWebHostBuilder in 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

Parametri

hostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder da configurare.

preferHostingUrls
Boolean

true per preferire GLI URL configurati in IWebHostBuilder; in caso contrario false.

Restituisce

Oggetto IWebHostBuilder.

Si applica a