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

Definition

Bestimmt den Index eines bestimmten Elements in der 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

Parameter

item
Activity

Das im IList zu suchende Objekt.

Gibt zurück

Int32

Der Index von item, wenn das Element in der Liste gefunden wird, andernfalls -1.

Implementiert

Hinweise

Wenn ein Objekt in der Liste mehrfach vorhanden ist, gibt die IndexOf-Methode immer die erste gefundene Instanz zurück.

Gilt für