AppTaskContent.CreateSequenceOfSteps(String[], String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立任務內容,顯示一系列步驟,顯示任務進度。
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
參數
- completedSteps
-
String[]
Platform::String[]
winrt::hstring[]
一組字串陣列代表已完成的步驟。
- executingStep
-
String
Platform::String
winrt::hstring
一個字串代表目前正在執行的步驟。
傳回
一個新的 AppTaskContent 物件,可以顯示逐步的進度。
- 屬性
備註
此內容類型適用於處理一系列步驟的任務,例如人工智慧代理的工作流程。 任務不需要知道接下來會有哪些步驟;它只顯示過去和現在的進度。