語言

AppTaskInfo.Id 屬性

定義

會自動產生此任務的唯一識別碼。

public:
 property Platform::String ^ Id { Platform::String ^ get(); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
winrt::hstring Id();
[Windows.Foundation.Metadata.Experimental]
public string Id { [Windows.Foundation.Metadata.Experimental] get; }
var string = appTaskInfo.id;
Public ReadOnly Property Id As String

屬性值

String

Platform::String

winrt::hstring

此任務的唯一識別碼。

屬性

備註

這很重要

應用程式任務支援將從 2026 年 5 月開始逐步推送至 Windows 11。 API Windows.UI.Shell.Tasks 所啟用的體驗要求對應的應用程式任務功能必須存在於該應用程式執行的 Windows 版本中。 否則,這些 API 將不會有任何影響。

適用於