Share via


ReadOnlyLinkedElementCollection<T>.IndexOf Method

Gets the index of a role player inside the collection.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    item As T _
) As Integer
public int IndexOf(
    T item
)
public:
virtual int IndexOf(
    T item
) sealed
abstract IndexOf : 
        item:'T -> int 
override IndexOf : 
        item:'T -> int 
public final function IndexOf(
    item : T
) : int

Parameters

  • item
    Type: T
    The role player to look for in the collection.

Return Value

Type: System.Int32
The index position of the role player inside collection or -1 if not found.

Implements

IList<T>.IndexOf(T)

.NET Framework Security

See Also

Reference

ReadOnlyLinkedElementCollection<T> Class

Microsoft.VisualStudio.Modeling Namespace