Delen via


Host.CreateApplicationBuilder Method

Definition

Overloads

CreateApplicationBuilder()

Initializes a new instance of the HostApplicationBuilder class with pre-configured defaults.

CreateApplicationBuilder(HostApplicationBuilderSettings)

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

CreateApplicationBuilder(String[])

Initializes a new instance of the HostApplicationBuilder class with pre-configured defaults.

CreateApplicationBuilder()

Source:
Host.cs
Source:
Host.cs
Source:
Host.cs

Initializes a new instance of the HostApplicationBuilder class with pre-configured defaults.

public:
 static Microsoft::Extensions::Hosting::HostApplicationBuilder ^ CreateApplicationBuilder();
public static Microsoft.Extensions.Hosting.HostApplicationBuilder CreateApplicationBuilder ();
static member CreateApplicationBuilder : unit -> Microsoft.Extensions.Hosting.HostApplicationBuilder
Public Shared Function CreateApplicationBuilder () As HostApplicationBuilder

Returns

The initialized HostApplicationBuilder.

Remarks

The following defaults are applied to the returned HostApplicationBuilder:

Applies to

CreateApplicationBuilder(HostApplicationBuilderSettings)

Source:
Host.cs
Source:
Host.cs
Source:
Host.cs

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

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

Parameters

settings
HostApplicationBuilderSettings

Controls the initial configuration and other settings for constructing the HostApplicationBuilder.

Returns

A new HostApplicationBuilder instance.

Applies to

CreateApplicationBuilder(String[])

Source:
Host.cs
Source:
Host.cs
Source:
Host.cs

Initializes a new instance of the HostApplicationBuilder class with pre-configured defaults.

public:
 static Microsoft::Extensions::Hosting::HostApplicationBuilder ^ CreateApplicationBuilder(cli::array <System::String ^> ^ args);
public static Microsoft.Extensions.Hosting.HostApplicationBuilder CreateApplicationBuilder (string[]? args);
static member CreateApplicationBuilder : string[] -> Microsoft.Extensions.Hosting.HostApplicationBuilder
Public Shared Function CreateApplicationBuilder (args As String()) As HostApplicationBuilder

Parameters

args
String[]

The command line args.

Returns

The initialized HostApplicationBuilder.

Remarks

The following defaults are applied to the returned HostApplicationBuilder:

Applies to