Version

Tag Property (TBCustom)

Arbitrary data object storing extra information to meet application-specific demands.
Syntax
'Declaration
 
Public Property Tag As Object
public object Tag {get; set;}
Remarks

This property is provided as a convenience for developers to annotate (or "tag") individual Toolbar items with arbitrary data objects during the processing of an HTTP request.

If the Tag object is a Common Language Runtime (CLR) reference-type, then developers are encouraged to implement ICloneable on its type to properly support deep copies made by the Clone method.

In order for the Tag object to persist itself within viewstate across postbacks, it must either be marked with the Serializable attribute, or implement ISerializable. Please consult the .NET Framework SDK for more information on serialization.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also