共用方式為


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

應用程式的應用程式使用者模型識別碼。

Windows 需求

裝置系列
Windows 11 (已於 10.0.22000.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v14.0 引進)

備註

應用程式使用者模型識別碼可用來將進程、檔案和視窗與特定應用程式產生關聯。 如需詳細資訊 ,請參閱應用程式使用者模型識別碼

此 API 更有效率,但同樣相當於 AppInfo.AppUserModelId 屬性。

適用於

另請參閱