AppTaskInfo.GetCompletedSteps Method

Definition

Gets the sequence of steps that have been completed for this task.

public:
 virtual Platform::Array <Platform::String ^> ^ GetCompletedSteps() = GetCompletedSteps;
/// [Windows.Foundation.Metadata.Experimental]
winrt::array_view <winrt::hstring const&> GetCompletedSteps();
[Windows.Foundation.Metadata.Experimental]
public string[] GetCompletedSteps();
function getCompletedSteps()
Public Function GetCompletedSteps () As String()

Returns

String[]

Platform::String[]

winrt::hstring[]

An array of strings that represent the completed steps in order.

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 method is useful when updating a task that was created with AppTaskContent.CreateSequenceOfSteps. Use the returned steps along with GetExecutingStep to create updated content.

Applies to