HostingAbstractionsWebHostBuilderExtensions.Start 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
啟動 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。