WebApplication.CreateSlimBuilder 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
返回
适用于
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
参数
- options
- WebApplicationOptions
返回
适用于
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[]
命令行参数。