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

適用対象