AppTaskInfo.GetExecutingStep Method

Definition

Gets the step that is currently executing for this task.

public:
 virtual Platform::String ^ GetExecutingStep() = GetExecutingStep;
/// [Windows.Foundation.Metadata.Experimental]
winrt::hstring GetExecutingStep();
[Windows.Foundation.Metadata.Experimental]
public string GetExecutingStep();
function getExecutingStep()
Public Function GetExecutingStep () As String

Returns

String

Platform::String

winrt::hstring

The currently executing step.

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 step along with GetCompletedSteps to create updated content.

Applies to