Share via


AppInfo 类

定义

提供有关应用程序的信息,例如其名称、徽标、包信息、ID。

public ref class AppInfo sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppInfo final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppInfo
Public NotInheritable Class AppInfo
继承
Object Platform::Object IInspectable AppInfo
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

版本历史记录

Windows 版本 SDK 版本 增值
2004 19041 当前
2004 19041 GetFromAppUserModelId
2004 19041 GetFromAppUserModelIdForUser
2004 19041

属性

AppUserModelId

唯一标识应用的标识符。

Current

检索与当前正在运行的进程对应的 AppInfo 对象。

DisplayInfo

获取描述应用程序的信息。

ExecutionContext

一个枚举,表示指定应用的执行上下文。 值可以是 Unknown、Host 或 Guest 之一。 在桌面设备上,此为“主机”。

Id

获取应用标识符。

Package

检索调用 AppInfo 对象的完整 Package 对象。

PackageFamilyName

唯一标识应用包的标识符。

SupportedFileExtensions

应用程序已注册要处理的文件扩展名的列表。 应用可以注册以处理应用程序清单文件中 的 windows.fileTypeAssociation 下的扩展。

方法

GetFromAppUserModelId(String)

检索与 AppUserModelId (AUMID) 关联的 AppInfo 对象。

GetFromAppUserModelIdForUser(User, String)

检索与指定的 User 和 AppUserModelId 关联的 AppInfo 对象, (AUMID) 。

适用于