共用方式為


HostApplicationBuilder Constructors

Definition

Overloads

HostApplicationBuilder()

Initializes a new instance of the HostApplicationBuilder class with preconfigured defaults.

HostApplicationBuilder(HostApplicationBuilderSettings)

Initializes a new instance of the HostApplicationBuilder.

HostApplicationBuilder(String[])

Initializes a new instance of the HostApplicationBuilder class with preconfigured defaults.

HostApplicationBuilder()

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

Initializes a new instance of the HostApplicationBuilder class with preconfigured defaults.

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

Remarks

The following defaults are applied to the returned HostApplicationBuilder:

Applies to

HostApplicationBuilder(HostApplicationBuilderSettings)

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

Initializes a new instance of the 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)

Parameters

settings
HostApplicationBuilderSettings

Settings controlling initial configuration and whether default settings should be used.

Applies to

HostApplicationBuilder(String[])

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

Initializes a new instance of the HostApplicationBuilder class with preconfigured defaults.

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())

Parameters

args
String[]

The command line args.

Remarks

The following defaults are applied to the returned HostApplicationBuilder:

Applies to