HostObject Class
Represents the object added to a HostObjects collection.
Namespace: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel
Assembly: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)
Syntax
'Declaration
<GuidAttribute("1CEF61C0-E7A8-4A8B-AF2F-2DA195053656")> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<ComVisibleAttribute(True)> _
Public Class HostObject _
Inherits IdentifierHostItemNode _
Implements IVstaHostObject
'Usage
Dim instance As HostObject
[GuidAttribute("1CEF61C0-E7A8-4A8B-AF2F-2DA195053656")]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[ComVisibleAttribute(true)]
public class HostObject : IdentifierHostItemNode, IVstaHostObject
[GuidAttribute(L"1CEF61C0-E7A8-4A8B-AF2F-2DA195053656")]
[ClassInterfaceAttribute(ClassInterfaceType::None)]
[ComVisibleAttribute(true)]
public ref class HostObject : public IdentifierHostItemNode,
IVstaHostObject
public class HostObject extends IdentifierHostItemNode implements IVstaHostObject
Remarks
For example, consider adding extensibility to Microsoft Excel, using a worksheet as the HostItem. In this scenario, a HostObject would be items that you can add to a worksheet, such as a chart or a NamedRange.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Internal.BlueprintNode
Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.IdentifierHostItemNode
Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.HostObject
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.VisualStudio.Tools.Applications.ProgrammingModel Namespace