AppTaskInfo.Update(AppTaskState, AppTaskContent) 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.
Updates both the state and content of this task.
public:
virtual void Update(AppTaskState state, AppTaskContent ^ content) = Update;
/// [Windows.Foundation.Metadata.Experimental]
void Update(AppTaskState const& state, AppTaskContent const& content);
[Windows.Foundation.Metadata.Experimental]
public void Update(AppTaskState state, AppTaskContent content);
function update(state, content)
Public Sub Update (state As AppTaskState, content As AppTaskContent)
Parameters
- state
- AppTaskState
A value of the enumeration that indicates the new state of the task.
- content
- AppTaskContent
The new content to display for this task, created using one of the AppTaskContent factory methods.
- 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 to update the task representation as the task progresses, encounters errors, or completes.