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

Définition

Détermine l’index d’un élément spécifique dans le 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 à localiser dans le IList.

Retours

Index du item cas échéant dans la liste ; sinon, -1.

Implémente

Remarques

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

S’applique à