Partilhar via


BaseCollection<T>.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
'Usage
Dim instance As BaseCollection
Dim item As T
Dim returnValue As Integer

returnValue = instance.IndexOf(item)
public int IndexOf(
    T item
)

Parameters

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

Return Value

Type: System.Int32
The position of the element in the collection or -1 if the element is not found.

Implements

IList<T>.IndexOf(T)

See Also

Reference

BaseCollection<T> Class

BaseCollection<T> Members

Microsoft.Rtc.Workflow.Utilities Namespace