Table of Contents

AppBase 类

命名空间
ClassIsland.Core
程序集
ClassIsland.Core.dll

应用对象基类

public abstract class AppBase : Application, IQueryAmbient, IAppHost
继承
AppBase
实现
继承成员

属性

AppCodeName

应用版本代号

public static string AppCodeName { get; }

属性值

string

AppSubChannel

应用分发频道

public string AppSubChannel { get; }

属性值

string

AppVersion

应用版本

public static string AppVersion { get; }

属性值

string

AppVersionLong

应用长版本号

public static string AppVersionLong { get; }

属性值

string

Current

获取当前应用程序实例。

public static AppBase Current { get; }

属性值

AppBase

IsDevelopmentBuild

应用是否属于开发构建

public abstract bool IsDevelopmentBuild { get; }

属性值

bool

IsMsix

应用是否处于 MSIX 打包

public abstract bool IsMsix { get; }

属性值

bool

PackagingType

应用打包类型

public string PackagingType { get; }

属性值

string

方法

IsAssetsTrimmed()

获取应用是否已裁剪资源。

public abstract bool IsAssetsTrimmed()

返回

bool

Restart(bool)

重启应用程序。

public abstract void Restart(bool quiet = false)

参数

quiet bool

是否静默重启

Stop()

停止当前应用程序。

public abstract void Stop()

事件

AppStarted

当应用启动时触发。

public abstract event EventHandler? AppStarted

事件类型

EventHandler

AppStopping

当应用正在停止时触发。

public abstract event EventHandler? AppStopping

事件类型

EventHandler