Share via


IVstaHostItem.Tag Property

Gets or sets the object that contains data about the HostItem.

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 IVstaHostItem 
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
The default value is null (Nothing in Visual Basic). Any type derived from the Object class can be assigned to this property.

Remarks

A common use for the Tag property is to store data that is closely associated with the HostItem. This value is not persisted to the Blueprint file.

.NET Framework Security

See Also

Reference

IVstaHostItem Interface

IVstaHostItem Members

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