Share via


AppExtension.AppUserModelId Property

Definition

Gets an identifier that uniquely identifies the app.

public:
 property Platform::String ^ AppUserModelId { Platform::String ^ get(); };
winrt::hstring AppUserModelId();
public string AppUserModelId { get; }
var string = appExtension.appUserModelId;
Public ReadOnly Property AppUserModelId As String

Property Value

String

Platform::String

winrt::hstring

The application user model ID for the application.

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Remarks

An application user model identifier is used to associate processes, files, and windows with a particular application. See Application User Model IDs for more details.

This API is a more efficient, but otherwise exact equivalent of the AppInfo.AppUserModelId property.

Applies to

See also