Condividi tramite


Host.CreateDefaultBuilder Method

Definition

Overloads

CreateDefaultBuilder()

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

CreateDefaultBuilder(String[])

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

CreateDefaultBuilder()

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

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

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

Returns

The initialized IHostBuilder.

Remarks

The following defaults are applied to the returned HostBuilder:

Applies to

CreateDefaultBuilder(String[])

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

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

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

Parameters

args
String[]

The command line args.

Returns

The initialized IHostBuilder.

Remarks

The following defaults are applied to the returned HostBuilder:

Applies to