WebApplication.CreateBuilder 方法

定义

重载

CreateBuilder()

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

CreateBuilder(WebApplicationOptions)

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

CreateBuilder(String[])

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

CreateBuilder()

Source:
WebApplication.cs

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

public static Microsoft.AspNetCore.Builder.WebApplicationBuilder CreateBuilder ();
static member CreateBuilder : unit -> Microsoft.AspNetCore.Builder.WebApplicationBuilder
Public Shared Function CreateBuilder () As WebApplicationBuilder

返回

WebApplicationBuilder

适用于

CreateBuilder(WebApplicationOptions)

Source:
WebApplication.cs

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

public static Microsoft.AspNetCore.Builder.WebApplicationBuilder CreateBuilder (Microsoft.AspNetCore.Builder.WebApplicationOptions options);
static member CreateBuilder : Microsoft.AspNetCore.Builder.WebApplicationOptions -> Microsoft.AspNetCore.Builder.WebApplicationBuilder
Public Shared Function CreateBuilder (options As WebApplicationOptions) As WebApplicationBuilder

参数

返回

WebApplicationBuilder

适用于

CreateBuilder(String[])

Source:
WebApplication.cs

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

public static Microsoft.AspNetCore.Builder.WebApplicationBuilder CreateBuilder (string[] args);
static member CreateBuilder : string[] -> Microsoft.AspNetCore.Builder.WebApplicationBuilder
Public Shared Function CreateBuilder (args As String()) As WebApplicationBuilder

参数

args
String[]

命令行参数。

返回

WebApplicationBuilder

适用于