Share via


AppInfo.GetFromAppUserModelIdForUser(User, String) Method

Definition

Retrieves the AppInfo object associated with a specified User and AppUserModelId (AUMID).

public:
 static AppInfo ^ GetFromAppUserModelIdForUser(User ^ user, Platform::String ^ appUserModelId);
 static AppInfo GetFromAppUserModelIdForUser(User const& user, winrt::hstring const& appUserModelId);
public static AppInfo GetFromAppUserModelIdForUser(User user, string appUserModelId);
function getFromAppUserModelIdForUser(user, appUserModelId)
Public Shared Function GetFromAppUserModelIdForUser (user As User, appUserModelId As String) As AppInfo

Parameters

user
User

The User whose AppInfos you wish to access.

appUserModelId
String

Platform::String

winrt::hstring

The AUMID of the app from which to retrieve the AppInfo.

Returns

The AppInfo corresponding to the given AUMID and user.

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v10.0)

Remarks

Finding AppInfo for another user requires administration privileges.

Requesting the AppInfo for another package requires the packageQuery capability. This capability is not required if the AUMID resolves to the current package. Note that full trust applications have this capability by default.

Applies to

See also