MauiApp.CreateBuilder(Boolean) 方法

定义

使用可选默认值初始化类的新实例 MauiAppBuilder

public static Microsoft.Maui.Hosting.MauiAppBuilder CreateBuilder (bool useDefaults = true);
static member CreateBuilder : bool -> Microsoft.Maui.Hosting.MauiAppBuilder
Public Shared Function CreateBuilder (Optional useDefaults As Boolean = true) As MauiAppBuilder

参数

useDefaults
Boolean

是否创建 MauiAppBuilder 具有常见默认值的默认值。

返回

MauiAppBuilder

适用于