Share via


ActivityCollection.IList<Activity>.IndexOf(Activity) Méthode

Définition

Détermine l'index d'un élément spécifique d'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

Paramètres

item
Activity

Objet à rechercher dans IList.

Retours

Int32

Index de item s'il figure dans la liste ; sinon, -1.

Implémente

Remarques

Si un objet se trouve plusieurs fois dans la liste, la méthode IndexOf retourne toujours la première instance recherchée.

S’applique à