Dela via


HostingAbstractionsWebHostBuilderExtensions.UseUrls Method

Definition

Specify the urls the web host will listen on.

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

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

urls
String[]

The urls the hosted application will listen on.

Returns

The IWebHostBuilder.

Applies to