語言

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 方法總是回傳第一個找到的實例。

適用於