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

适用于