AppExtension.AppUserModelId 属性

定义

获取唯一标识应用的标识符。

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

属性值

String

Platform::String

winrt::hstring

应用程序的应用程序用户模型 ID。

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v14.0 中引入)

注解

应用程序用户模型标识符用于将进程、文件和窗口与特定应用程序相关联。 有关更多详细信息 ,请参阅应用程序用户模型 ID

此 API 更高效,但与其他 AppInfo.AppUserModelId 属性完全等效。

适用于

另请参阅