EntitySet<TEntity>.IndexOf Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Returns the index of the entity.
Namespace: System.Data.Linq
Assembly: System.Data.Linq (in System.Data.Linq.dll)
Syntax
'Declaration
Public Function IndexOf ( _
entity As TEntity _
) As Integer
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
Version Information
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.