Share via


LookupList<T>.IndexOf Method

Returns the zero-based index of the first occurrence of the specified entity in the LookupList<T>.

Namespace:  Microsoft.SharePoint.Linq
Assembly:  Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    item As T _
) As Integer
'Usage
Dim instance As LookupList
Dim item As T
Dim returnValue As Integer

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

Parameters

  • item
    Type: T

    The item whose index is returned.

Return Value

Type: System.Int32
A Int32 that represents the zero-based index of the specified item in the LookupList<T>.

Implements

IList<T>.IndexOf(T)

See Also

Reference

LookupList<T> Class

LookupList<T> Members

Microsoft.SharePoint.Linq Namespace