Share via


DomainDataSourceView.IndexOf Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets the ordinal position of the specified item within the view.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    item As Object _
) As Integer
'Usage
Dim instance As DomainDataSourceView
Dim item As Object
Dim returnValue As Integer

returnValue = instance.IndexOf(item)
public int IndexOf(
    Object item
)
public:
int IndexOf(
    Object^ item
)
member IndexOf : 
        item:Object -> int 
public function IndexOf(
    item : Object
) : int

Parameters

Return Value

Type: System.Int32
The ordinal position of the specified item within the view.

See Also

Reference

DomainDataSourceView Class

System.Windows.Controls Namespace