WebApplication.CreateBuilder 方法

定義

多載

CreateBuilder()

使用預先設定的預設值, WebApplicationBuilder 初始化 類別的新實例。

CreateBuilder(WebApplicationOptions)

使用預先設定的預設值, WebApplicationBuilder 初始化 類別的新實例。

CreateBuilder(String[])

使用預先設定的預設值, WebApplicationBuilder 初始化 類別的新實例。

CreateBuilder()

使用預先設定的預設值, WebApplicationBuilder 初始化 類別的新實例。

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

傳回

WebApplicationBuilder

WebApplicationBuilder

適用於

CreateBuilder(WebApplicationOptions)

使用預先設定的預設值, 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

WebApplicationBuilder

適用於

CreateBuilder(String[])

使用預先設定的預設值, 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

WebApplicationBuilder

適用於