共用方式為


GlobalObjectCollection.IndexOf Method

Gets the position of an object in the collection.

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

Syntax

'宣告
Public Function IndexOf ( _
    item As GlobalObject _
) As Integer
public int IndexOf(
    GlobalObject item
)

Parameters

Return Value

Type: System.Int32
The position of the object in the collection, or -1 if the object is not in the collection.

.NET Framework Security

See Also

Reference

GlobalObjectCollection Class

Microsoft.VisualStudio.Shell.Design Namespace