AppTaskInfo.GetCompletedSteps 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得此任務已完成的步驟順序。
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()
傳回
一組字串,代表依序完成的步驟。
- 屬性
備註
這很重要
應用程式任務支援將從 2026 年 5 月開始逐步推送至 Windows 11。 API Windows.UI.Shell.Tasks 所啟用的體驗要求對應的應用程式任務功能必須存在於該應用程式執行的 Windows 版本中。 否則,這些 API 將不會有任何影響。
此方法在更新使用 AppTaskContent.CreateSequenceOfSteps 建立的任務時非常有用。 使用回傳的步驟與 GetExecutingStep 一起建立更新內容。