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
value
Type: System.ObjectThe object whose index is returned.
Return value
Type: System.Int32
A Int32 that represents the zero-based index of the specified entity in the EntitySet<TEntity>.