AppTaskContent.CreateSequenceOfSteps(String[], String) Method

Definition

Creates task content that displays a sequence of steps showing task progress.

public:
 static AppTaskContent ^ CreateSequenceOfSteps(Platform::Array <Platform::String ^> ^ completedSteps, Platform::String ^ executingStep);
/// [Windows.Foundation.Metadata.Experimental]
 static AppTaskContent CreateSequenceOfSteps(winrt::array_view <winrt::hstring const&> const& completedSteps, winrt::hstring const& executingStep);
[Windows.Foundation.Metadata.Experimental]
public static AppTaskContent CreateSequenceOfSteps(string[] completedSteps, string executingStep);
function createSequenceOfSteps(completedSteps, executingStep)
Public Shared Function CreateSequenceOfSteps (completedSteps As String(), executingStep As String) As AppTaskContent

Parameters

completedSteps

String[]

Platform::String[]

winrt::hstring[]

An array of strings that represent the steps that have already been completed.

executingStep
String

Platform::String

winrt::hstring

A string that represents the step that is currently executing.

Returns

A new AppTaskContent object that displays step-by-step progress.

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.

This content type is useful for tasks that process a series of steps, such as AI agent workflows. The task doesn't need to know what steps will come next; it shows only past and current progress.

Applies to