HostingAbstractionsWebHostBuilderExtensions.PreferHostingUrls(IWebHostBuilder, Boolean) HostingAbstractionsWebHostBuilderExtensions.PreferHostingUrls(IWebHostBuilder, Boolean) HostingAbstractionsWebHostBuilderExtensions.PreferHostingUrls(IWebHostBuilder, Boolean) Method

Definition

Indicate whether the host should listen on the URLs configured on the IWebHostBuilder instead of those configured on the IServer.

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

Parameters

preferHostingUrls
Boolean Boolean Boolean

true to prefer URLs configured on the IWebHostBuilder; otherwise false.

Returns

Applies to