共用方式為


Host.CreateApplicationBuilder 方法

定義

多載

CreateApplicationBuilder()

使用預先設定的預設值, HostApplicationBuilder 初始化 類別的新實例。

CreateApplicationBuilder(HostApplicationBuilderSettings)

使用預先設定的預設值, HostApplicationBuilder 初始化 類別的新實例。

CreateApplicationBuilder(String[])

使用預先設定的預設值, HostApplicationBuilder 初始化 類別的新實例。

CreateApplicationBuilder()

來源:
Host.cs
來源:
Host.cs
來源:
Host.cs
來源:
Host.cs

使用預先設定的預設值, HostApplicationBuilder 初始化 類別的新實例。

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

傳回

新的 HostApplicationBuilder 執行個體。

備註

下列預設值會套用至傳 HostBuilder回的 :

適用於

CreateApplicationBuilder(HostApplicationBuilderSettings)

來源:
Host.cs
來源:
Host.cs
來源:
Host.cs

使用預先設定的預設值, HostApplicationBuilder 初始化 類別的新實例。

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

參數

settings
HostApplicationBuilderSettings

控制建構 HostApplicationBuilder的初始組態和其他設定。

傳回

新的 HostApplicationBuilder 執行個體。

適用於

CreateApplicationBuilder(String[])

來源:
Host.cs
來源:
Host.cs
來源:
Host.cs
來源:
Host.cs

使用預先設定的預設值, HostApplicationBuilder 初始化 類別的新實例。

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

參數

args
String[]

命令列引數。

傳回

新的 HostApplicationBuilder 執行個體。

備註

下列預設值會套用至傳 HostBuilder回的 :

適用於