WebApplication.CreateSlimBuilder 方法

定义

重载

CreateSlimBuilder()

使用最少的 WebApplicationBuilder 默认值初始化 类的新实例。

CreateSlimBuilder(WebApplicationOptions)

使用最少的 WebApplicationBuilder 默认值初始化 类的新实例。

CreateSlimBuilder(String[])

使用最少的 WebApplicationBuilder 默认值初始化 类的新实例。

CreateSlimBuilder()

Source:
WebApplication.cs

使用最少的 WebApplicationBuilder 默认值初始化 类的新实例。

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

返回

WebApplicationBuilder

适用于

CreateSlimBuilder(WebApplicationOptions)

Source:
WebApplication.cs

使用最少的 WebApplicationBuilder 默认值初始化 类的新实例。

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

参数

返回

WebApplicationBuilder

适用于

CreateSlimBuilder(String[])

Source:
WebApplication.cs

使用最少的 WebApplicationBuilder 默认值初始化 类的新实例。

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

参数

args
String[]

命令行参数。

返回

WebApplicationBuilder

适用于