HostingAbstractionsWebHostBuilderExtensions.UseUrls(IWebHostBuilder, String[]) 方法

定義

指定 web 主機將接聽的 url。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseUrls(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, ... cli::array <System::String ^> ^ urls);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseUrls (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, params string[] urls);
static member UseUrls : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string[] -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseUrls (hostBuilder As IWebHostBuilder, ParamArray urls As String()) As IWebHostBuilder

參數

hostBuilder
IWebHostBuilder

要設定的 IWebHostBuilder

urls
String[]

主控的應用程式將接聽的 url。

傳回

IWebHostBuilder

IWebHostBuilder

適用於