Switcher.WidgetsCollection.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 IWidget _
) As Integer
'Usage
Dim instance As Switcher..::..WidgetsCollection
Dim item As IWidget
Dim returnValue As Integer
returnValue = instance.IndexOf(item)
public int IndexOf(
IWidget item
)
public:
virtual int IndexOf(
IWidget^ item
) sealed
abstract IndexOf :
item:IWidget -> int
override IndexOf :
item:IWidget -> int
public final function IndexOf(
item : IWidget
) : int
Parameters
- item
Type: Microsoft.SqlServer.Management.Controls.IWidget
The object to locate in the list. The value can be a null reference for reference types.
Return Value
Type: System.Int32
The zero-based index of the first occurrence of the item in the collection, if found; otherwise, -1.