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 メソッドは常に最初に見つかったインスタンスを返します。

適用対象