AppTaskInfo.GetExecutingStep 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取当前正在为此任务执行的步骤。
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
返回
当前正在执行的步骤。
- 属性
注解
重要
从 2026 年 5 月开始,应用任务支持将逐步推出到 Windows 11。 API 启用 Windows.UI.Shell.Tasks 的体验要求在运行应用的 Windows 版本中存在相应的应用任务功能。 否则,这些 API 将没有任何影响。
此方法在更新使用 AppTaskContent.CreateSequenceOfSteps 创建的任务时非常有用。 使用返回的步骤和 GetCompletedSteps 创建更新的内容。