इसके माध्यम से साझा किया गया


AppInfo.GetFromAppUserModelId(String) Method

Definition

Retrieves the AppInfo object associated with an AppUserModelId (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

Parameters

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.

Windows requirements

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

Remarks

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