Add Method (Tags Object)

See Also         Example         Applies To

Creates a tag for the specified object. If the tag already exists, this method replaces the existing tag value.

Syntax

expression.Add(Name, Value)

expression   Required. An expression that returns a Tags object.

Name   Required String. The new tag name. Use "name" as the string for this argument to set the value of the name tag.

Value   Required String. The new tag value.

Remarks

The Tags object contains a pair of strings — the tag name and the tag value — for each tag. Use the Add method to create a tag, and use the Name and Value methods to return a tag's name and value components.