AppTaskInfo.State Property

Definition

Gets the current state of this task.

public:
 property AppTaskState State { AppTaskState get(); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
AppTaskState State();
[Windows.Foundation.Metadata.Experimental]
public AppTaskState State { [Windows.Foundation.Metadata.Experimental] get; }
var appTaskState = appTaskInfo.state;
Public ReadOnly Property State As AppTaskState

Property Value

A value of the enumeration that indicates the current state of the 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.

Use the Update or UpdateState methods to set state values.

Applies to