IVstaHostObjectCollection.Insert Method
Inserts the specified host object at the specified location in the collection.
Namespace: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop
Assembly: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)
Syntax
'Declaration
Sub Insert ( _
index As Integer, _
value As IVstaHostObject _
)
'Usage
Dim instance As IVstaHostObjectCollection
Dim index As Integer
Dim value As IVstaHostObject
instance.Insert(index, value)
void Insert(
int index,
IVstaHostObject value
)
void Insert(
int index,
IVstaHostObject^ value
)
function Insert(
index : int,
value : IVstaHostObject
)
Parameters
index
Type: System.Int32The location at which to insert the object.
value
Type: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop.IVstaHostObjectThe host object to insert.
.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