HostApplicationBuilder 构造函数

定义

重载

HostApplicationBuilder()

使用预配置的默认值初始化 类的新实例 HostApplicationBuilder

HostApplicationBuilder(HostApplicationBuilderSettings)

初始化 HostApplicationBuilder 类的新实例。

HostApplicationBuilder(String[])

使用预配置的默认值初始化 类的新实例 HostApplicationBuilder

HostApplicationBuilder()

Source:
HostApplicationBuilder.cs
Source:
HostApplicationBuilder.cs
Source:
HostApplicationBuilder.cs
Source:
HostApplicationBuilder.cs

使用预配置的默认值初始化 类的新实例 HostApplicationBuilder

public:
 HostApplicationBuilder();
public HostApplicationBuilder ();
Public Sub New ()

注解

以下默认值应用于返回的 HostApplicationBuilder

适用于

HostApplicationBuilder(HostApplicationBuilderSettings)

Source:
HostApplicationBuilder.cs
Source:
HostApplicationBuilder.cs
Source:
HostApplicationBuilder.cs
Source:
HostApplicationBuilder.cs

初始化 HostApplicationBuilder 类的新实例。

public:
 HostApplicationBuilder(Microsoft::Extensions::Hosting::HostApplicationBuilderSettings ^ settings);
public HostApplicationBuilder (Microsoft.Extensions.Hosting.HostApplicationBuilderSettings? settings);
new Microsoft.Extensions.Hosting.HostApplicationBuilder : Microsoft.Extensions.Hosting.HostApplicationBuilderSettings -> Microsoft.Extensions.Hosting.HostApplicationBuilder
Public Sub New (settings As HostApplicationBuilderSettings)

参数

settings
HostApplicationBuilderSettings

指定初始配置以及是否应使用默认设置的设置。

适用于

HostApplicationBuilder(String[])

Source:
HostApplicationBuilder.cs
Source:
HostApplicationBuilder.cs
Source:
HostApplicationBuilder.cs
Source:
HostApplicationBuilder.cs

使用预配置的默认值初始化 类的新实例 HostApplicationBuilder

public:
 HostApplicationBuilder(cli::array <System::String ^> ^ args);
public HostApplicationBuilder (string[]? args);
new Microsoft.Extensions.Hosting.HostApplicationBuilder : string[] -> Microsoft.Extensions.Hosting.HostApplicationBuilder
Public Sub New (args As String())

参数

args
String[]

命令行参数。

注解

以下默认值应用于返回的 HostApplicationBuilder

适用于