Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IndexOf Method

EntitySet<TEntity>.IndexOf Method

Returns the index of the entity.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public int IndexOf(
	TEntity entity
)

Parameters

entity
Type: TEntity

The entity whose index is to be returned.

Return Value

Type: System.Int32
An integer representing the index.

Implements

IList<T>.IndexOf(T)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft