IVstaHostObjectCollection.Add Method (IVstaHostObject)
Creates a new HostObject that is attached to the HostItem.
Namespace: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop
Assembly: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)
Syntax
'Declaration
Function Add ( _
value As IVstaHostObject _
) As Integer
'Usage
Dim instance As IVstaHostObjectCollection
Dim value As IVstaHostObject
Dim returnValue As Integer
returnValue = instance.Add(value)
int Add(
IVstaHostObject value
)
int Add(
IVstaHostObject^ value
)
function Add(
value : IVstaHostObject
) : int
Parameters
value
Type: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop.IVstaHostObjectThe host object to add.
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