Host.CreateEmptyApplicationBuilder(HostApplicationBuilderSettings) 方法

定义

初始化 没有预配置的默认值的 HostApplicationBuilder 类的新实例。

public:
 static Microsoft::Extensions::Hosting::HostApplicationBuilder ^ CreateEmptyApplicationBuilder(Microsoft::Extensions::Hosting::HostApplicationBuilderSettings ^ settings);
public static Microsoft.Extensions.Hosting.HostApplicationBuilder CreateEmptyApplicationBuilder (Microsoft.Extensions.Hosting.HostApplicationBuilderSettings? settings);
static member CreateEmptyApplicationBuilder : Microsoft.Extensions.Hosting.HostApplicationBuilderSettings -> Microsoft.Extensions.Hosting.HostApplicationBuilder
Public Shared Function CreateEmptyApplicationBuilder (settings As HostApplicationBuilderSettings) As HostApplicationBuilder

参数

settings
HostApplicationBuilderSettings

控制用于构造 HostApplicationBuilder的初始配置和其他设置。

返回

已初始化的 HostApplicationBuilder

适用于