AppTaskInfo.FindAll Method

Definition

Returns all app tasks that were created by the current application.

public:
 static Platform::Array <AppTaskInfo ^> ^ FindAll();
/// [Windows.Foundation.Metadata.Experimental]
 static winrt::array_view <AppTaskInfo const&> FindAll();
[Windows.Foundation.Metadata.Experimental]
public static AppTaskInfo[] FindAll();
function findAll()
Public Shared Function FindAll () As AppTaskInfo()

Returns

An array of AppTaskInfo objects that represent all tasks created by the app that have not been removed.

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 this method at app startup to enumerate existing tasks that may have been created previously. Tasks are persisted beyond the lifetime of the calling app and also persist through reboots. The returned collection includes tasks that have been hidden by the user. If IsSupported returns false, this method returns an empty collection.

Applies to