WebApplication.CreateSlimBuilder 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateSlimBuilder() |
使用最少的預設值, WebApplicationBuilder 初始化 類別的新實例。 |
CreateSlimBuilder(WebApplicationOptions) |
使用最少的預設值, WebApplicationBuilder 初始化 類別的新實例。 |
CreateSlimBuilder(String[]) |
使用最少的預設值, WebApplicationBuilder 初始化 類別的新實例。 |
CreateSlimBuilder()
使用最少的預設值, WebApplicationBuilder 初始化 類別的新實例。
public static Microsoft.AspNetCore.Builder.WebApplicationBuilder CreateSlimBuilder ();
static member CreateSlimBuilder : unit -> Microsoft.AspNetCore.Builder.WebApplicationBuilder
Public Shared Function CreateSlimBuilder () As WebApplicationBuilder
傳回
適用於
CreateSlimBuilder(WebApplicationOptions)
使用最少的預設值, 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[])
使用最少的預設值, 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[]
命令列引數。