共用方式為


WorkflowInspectionServices.Resolve(Activity, String) 方法

定義

從指定的活動樹狀傳回具有指定之 id 的活動。

public:
 static System::Activities::Activity ^ Resolve(System::Activities::Activity ^ root, System::String ^ id);
public static System.Activities.Activity Resolve (System.Activities.Activity root, string id);
static member Resolve : System.Activities.Activity * string -> System.Activities.Activity
Public Shared Function Resolve (root As Activity, id As String) As Activity

參數

root
Activity

要搜尋的活動樹狀結構。

id
String

要尋找的活動識別碼。

傳回

找到的指定活動,否則會擲回 ArgumentException

適用於