AppTaskInfo.Id Property

Definition

Gets the automatically generated unique identifier for this task.

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

Property Value

String

Platform::String

winrt::hstring

The unique identifier for this task.

Attributes

Remarks

Important

App task support will start gradually rolling out to Windows 11 starting May, 2026. The experiences enabled by Windows.UI.Shell.Tasks APIs require that the corresponding app task feature be present in the version of Windows where the app runs. Otherwise, these APIs will not have any effect.

Applies to