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