AppInfo.GetFromAppUserModelId(String) 方法

定義

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

public:
 static AppInfo ^ GetFromAppUserModelId(Platform::String ^ appUserModelId);
 static AppInfo GetFromAppUserModelId(winrt::hstring const& appUserModelId);
public static AppInfo GetFromAppUserModelId(string appUserModelId);
function getFromAppUserModelId(appUserModelId)
Public Shared Function GetFromAppUserModelId (appUserModelId As String) As AppInfo

參數

appUserModelId
String

Platform::String

winrt::hstring

要從中擷取 AppInfo 之應用程式的 AUMID。

傳回

對應至指定 AUMID 的 AppInfo。

Windows 需求

裝置系列
Windows 10, version 2004 (已於 10.0.19041.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v10.0 引進)

備註

要求 AppInfo 以取得另一個套件需要 packageQuery 功能。 如果 AUMID 解析為目前的封裝,則不需要這項功能。 請注意,完全信任應用程式預設具有這項功能。

適用於

另請參閱