Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Host.CreateDefaultBuilder Method

Definition

Namespace:
Microsoft.Extensions.Hosting
Assembly:
Microsoft.Extensions.Hosting.dll
Package:
Microsoft.Extensions.Hosting v11.0.0-preview.5.26302.115

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
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
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
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


Feedback

Was this page helpful?