Share via


EntitySet<TEntity>.IndexOf method (Object)

Returns the zero-based index of the first occurrence of the specified object in the collection.

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

Syntax

'Declaration
Public Function IndexOf ( _
    value As Object _
) As Integer
'Usage
Dim instance As EntitySet
Dim value As Object
Dim returnValue As Integer

returnValue = instance.IndexOf(value)
public int IndexOf(
    Object value
)

Parameters

Return value

Type: System.Int32
A Int32 that represents the zero-based index of the specified entity in the EntitySet<TEntity>.

Implements

IList.IndexOf(Object)

See also

Reference

EntitySet<TEntity> class

EntitySet<TEntity> members

IndexOf overload

Microsoft.SharePoint.Linq namespace