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