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