ActivityCollection.IList<Activity>.IndexOf(Activity) Metod

Definition

Avgör indexet för ett specifikt objekt i 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

Parametrar

item
Activity

Objektet som ska hittas IListi .

Returer

Indexet för item om det finns i listan, annars -1.

Implementeringar

Kommentarer

Om ett objekt inträffar flera gånger i listan IndexOf returnerar metoden alltid den första instansen som hittades.

Gäller för