Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Declaration
Public Function IndexOf ( _
item As GlobalObject _
) As Integer
'Usage
Dim instance As GlobalObjectCollection
Dim item As GlobalObject
Dim returnValue As Integer
returnValue = instance.IndexOf(item)
public int IndexOf(
GlobalObject item
)
public:
int IndexOf(
GlobalObject^ item
)
member IndexOf :
item:GlobalObject -> int
public function IndexOf(
item : GlobalObject
) : int
Parameters
- item
Type: Microsoft.VisualStudio.Shell.Design.GlobalObject
An item that should have its offset retrieved.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.