Share via


ReadOnlyList<T>.IndexOf Method

Determines the index of a specific item in the list.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    item As T _
) As Integer
'Usage
Dim instance As ReadOnlyList 
Dim item As T
Dim returnValue As Integer 

returnValue = instance.IndexOf(item)
public int IndexOf(
    T item
)
public:
int IndexOf(
    T item
)
member IndexOf : 
        item:'T -> int
public function IndexOf(
    item : T
) : int

Parameters

  • item
    Type: T
    The object to locate in the list.

Return Value

Type: System.Int32
The index of a specific item in the list.

See Also

Reference

ReadOnlyList<T> Structure

Microsoft.SqlServer.Management.Sdk.Sfc Namespace