IndexOf Method

Gets the position of an element in the collection.

Namespace: Microsoft.Rtc.Workflow.Utilities
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    item As T _
) As Integer
public int IndexOf(
    T item
)
public:
virtual int IndexOf(
    T item
) sealed
function indexOf(item);

Parameters

  • item
    Type: T
    The element to search for in the collection.

Return Value

The position of the element in the collection or -1 if the element is not found.

Implements

IListIndexOf(UTP)

See Also

BaseCollection<(Of <(T>)>) Class

Microsoft.Rtc.Workflow.Utilities Namespace