Host.CreateDefaultBuilder 方法

定义

重载

CreateDefaultBuilder()

使用预配置的默认值初始化 类的新实例 HostBuilder

CreateDefaultBuilder(String[])

使用预配置的默认值初始化 类的新实例 HostBuilder

CreateDefaultBuilder()

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

使用预配置的默认值初始化 类的新实例 HostBuilder

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

注解

以下默认值应用于返回的 HostBuilder

适用于

CreateDefaultBuilder(String[])

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

使用预配置的默认值初始化 类的新实例 HostBuilder

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[]

命令行参数。

返回

已初始化的 IHostBuilder

注解

以下默认值应用于返回的 HostBuilder

适用于