다음을 통해 공유


HostingAbstractionsWebHostBuilderExtensions.PreferHostingUrls 메서드

정의

호스트가 에 구성된 URL 대신 IServerIWebHostBuilder 구성된 URL에서 수신 대기해야 하는지 여부를 나타냅니다.

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

매개 변수

hostBuilder
IWebHostBuilder

구성할 IWebHostBuilder입니다.

preferHostingUrls
Boolean

true 에 구성된 URL을 선호하려면 이고 IWebHostBuilder, 그렇지 않으면 false입니다.

반환

IWebHostBuilder

적용 대상