AppInfo 類別

定義

提供應用程式的相關資訊,例如其名稱、標誌、套件資訊、識別碼。

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

列舉,表示指定之應用程式的執行內容。 值可能是未知、主機或來賓的其中一個。 在桌面裝置上,這會是 [主機]。

Id

取得應用程式識別碼。

Package

擷取呼叫 AppInfo 物件的完整 Package 物件。

PackageFamilyName

可唯一識別應用程式套件的識別碼。

SupportedFileExtensions

應用程式已註冊要處理的副檔名清單。 應用程式可以註冊以處理應用程式資訊清單檔案中的 下延伸模組 windows.fileTypeAssociation

方法

GetFromAppUserModelId(String)

擷取與 AppUserModelId 相關聯的 AppInfo 物件, (AUMID) 。

GetFromAppUserModelIdForUser(User, String)

擷取與指定之 User 和 AppUserModelId 相關聯的 AppInfo 物件, (AUMID) 。

適用於