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

定義

啟動 web 主機並接聽指定的 url。

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

參數

hostBuilder
IWebHostBuilder

要啟動的 IWebHostBuilder

urls
String[]

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

傳回

IWebHost

IWebHostBuilder

適用於