ActivityCollection.IList<Activity>.IndexOf(Activity) 方法

定义

确定 IList中特定项的索引。

 virtual int System.Collections.Generic.IList<System.Workflow.ComponentModel.Activity>.IndexOf(System::Workflow::ComponentModel::Activity ^ item) = System::Collections::Generic::IList<System::Workflow::ComponentModel::Activity ^>::IndexOf;
int IList<Activity>.IndexOf(System.Workflow.ComponentModel.Activity item);
abstract member System.Collections.Generic.IList<System.Workflow.ComponentModel.Activity>.IndexOf : System.Workflow.ComponentModel.Activity -> int
override this.System.Collections.Generic.IList<System.Workflow.ComponentModel.Activity>.IndexOf : System.Workflow.ComponentModel.Activity -> int
Function IndexOf (item As Activity) As Integer Implements IList(Of Activity).IndexOf

参数

item
Activity

要定位在 . 中的 IList对象

返回

如果在列表中找到的 item 索引,则为 -1。

实现

注解

如果列表中多次发生对象,该方法 IndexOf 始终返回找到的第一个实例。

适用于