HostingAbstractionsWebHostBuilderExtensions.UseUrls 方法

定义

指定 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

适用于