Switcher.ListViewCollection.IndexOf Method
Searches for the specified object and returns the zero-based index of the first occurrence in the collection.
Namespace: Microsoft.SqlServer.Management.Controls
Assembly: Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)
Syntax
'Declaration
Public Function IndexOf ( _
item As IView _
) As Integer
'Usage
Dim instance As Switcher..::..ListViewCollection
Dim item As IView
Dim returnValue As Integer
returnValue = instance.IndexOf(item)
public int IndexOf(
IView item
)
public:
virtual int IndexOf(
IView^ item
) sealed
abstract IndexOf :
item:IView -> int
override IndexOf :
item:IView -> int
public final function IndexOf(
item : IView
) : int
Parameters
- item
Type: Microsoft.SqlServer.Management.Controls.IView
The object to locate in the List. The value can be null for reference types.
Return Value
Type: System.Int32
The zero-based index of the first occurrence of item in the Collection, if found; otherwise, -1.