HostingAbstractionsHostBuilderExtensions.Start(IHostBuilder) 方法

定义

生成并启动该主机。

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

适用于