ActivityCollection.IndexOf(Activity) 方法

定义

获取 . 中的Activity索引ICollection

public:
 int IndexOf(System::Workflow::ComponentModel::Activity ^ item);
public int IndexOf(System.Workflow.ComponentModel.Activity item);
override this.IndexOf : System.Workflow.ComponentModel.Activity -> int
Public Function IndexOf (item As Activity) As Integer

参数

item
Activity

要为其获取索引的活动。

返回

中的Activity索引ICollection。 否则 -1(如果Activity不在 )。ICollection

实现

注解

此集合的类型安全。 如果项的类型不是, Activity将引发运行时异常。

适用于