AppTaskInfo.IsSupported Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the app task feature is supported on the current device.
public:
static bool IsSupported();
/// [Windows.Foundation.Metadata.Experimental]
static bool IsSupported();
[Windows.Foundation.Metadata.Experimental]
public static bool IsSupported();
function isSupported()
Public Shared Function IsSupported () As Boolean
Returns
bool
true if app tasks are supported; otherwise, false.
- 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.
Call this method before using other AppTaskInfo APIs. At startup, call IsSupported and FindAll to enumerate existing tasks that may have been added previously. AppTaskInfo instances are persisted beyond the lifetime of the calling app and also persist through reboots. If an app adds a task, it is the app's responsibility to remove it at the appropriate time in the future. If this method returns false, FindAll returns an empty collection.