GlobalTypeCollection.IndexOf Method

Get the position of the specified item.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Public Function IndexOf ( _
    item As GlobalType _
) As Integer
'使用
Dim instance As GlobalTypeCollection
Dim item As GlobalType
Dim returnValue As Integer

returnValue = instance.IndexOf(item)
public int IndexOf(
    GlobalType item
)
public:
int IndexOf(
    GlobalType^ item
)
public function IndexOf(
    item : GlobalType
) : int

Parameters

Return Value

Type: System.Int32

The index at which the item was found, or -1 if it is not in the collection.

Permissions

See Also

Reference

GlobalTypeCollection Class

GlobalTypeCollection Members

Microsoft.VisualStudio.Shell.Design Namespace