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 中尋找的物件。

傳回

Int32

如果可在清單中找到則為 item 的索引,否則為 -1。

實作

備註

如果物件在清單中多次出現,則 IndexOf 方法一定會傳回找到的第一個執行個體。

適用於