Host.CreateDefaultBuilder 方法

定義

多載

CreateDefaultBuilder()

使用預先設定的預設值,初始化 HostBuilder 類別的新執行個體。Initializes a new instance of the HostBuilder class with pre-configured defaults.

CreateDefaultBuilder(String[])

使用預先設定的預設值,初始化 HostBuilder 類別的新執行個體。Initializes a new instance of the HostBuilder class with pre-configured defaults.

CreateDefaultBuilder()

使用預先設定的預設值,初始化 HostBuilder 類別的新執行個體。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

傳回

IHostBuilder

初始化的 IHostBuilderThe initialized IHostBuilder.

備註

下列預設值會套用至傳回的 HostBuilderThe following defaults are applied to the returned HostBuilder:

適用於

CreateDefaultBuilder(String[])

使用預先設定的預設值,初始化 HostBuilder 類別的新執行個體。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

參數

args
String[]

命令列引數。The command line args.

傳回

IHostBuilder

初始化的 IHostBuilderThe initialized IHostBuilder.

備註

下列預設值會套用至傳回的 HostBuilderThe following defaults are applied to the returned HostBuilder:

適用於