HostingAbstractionsHostBuilderExtensions.Start(IHostBuilder) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建置並啟動主機。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHost ^ Start(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder);
public static Microsoft.Extensions.Hosting.IHost Start (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder);
static member Start : Microsoft.Extensions.Hosting.IHostBuilder -> Microsoft.Extensions.Hosting.IHost
<Extension()>
Public Function Start (hostBuilder As IHostBuilder) As IHost
參數
- hostBuilder
- IHostBuilder
要啟動的 IHostBuilder。
傳回
啟動的 IHost。