IVstaHostObjectCollection.IndexOf Method
Gets the index of the specified host object.
Namespace: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop
Assembly: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)
Syntax
'Declaration
Function IndexOf ( _
value As IVstaHostObject _
) As Integer
'Usage
Dim instance As IVstaHostObjectCollection
Dim value As IVstaHostObject
Dim returnValue As Integer
returnValue = instance.IndexOf(value)
int IndexOf(
IVstaHostObject value
)
int IndexOf(
IVstaHostObject^ value
)
function IndexOf(
value : IVstaHostObject
) : int
Parameters
value
Type: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop.IVstaHostObjectThe host object to return the index of.
Return Value
Type: System.Int32
.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.
See Also
Reference
IVstaHostObjectCollection Interface
IVstaHostObjectCollection Members
Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop Namespace