AppTaskInfo.Remove 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.
Removes this task from the Windows Shell, but doesn't change its state.
public:
virtual void Remove() = Remove;
/// [Windows.Foundation.Metadata.Experimental]
void Remove();
[Windows.Foundation.Metadata.Experimental]
public void Remove();
function remove()
Public Sub Remove ()
- 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 when the app determines it no longer wants to display the task on the taskbar, such as when the task has completed or the user has deleted the task from within the app. Calling Remove multiple times is harmless.