IVstaHostObject.Tag Property

Gets an object that contains data that is associated with the HostObject. The default is a null reference (Nothing in Visual Basic). Any type derived from the Object class can be assigned to this property.

Namespace:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop
Assembly:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)

Syntax

'Declaration
Property Tag As Object
'Usage
Dim instance As IVstaHostObject 
Dim value As Object 

value = instance.Tag

instance.Tag = value
Object Tag { get; set; }
property Object^ Tag {
    Object^ get ();
    void set (Object^ value);
}
function get Tag () : Object 
function set Tag (value : Object)

Property Value

Type: System.Object
A reference to the object.

Remarks

The default is a null reference (Nothing in Visual Basic). Any type derived from the Object class can be assigned to this property. This value is not persisted to the Blueprint file.

.NET Framework Security

See Also

Reference

IVstaHostObject Interface

IVstaHostObject Members

Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop Namespace