Share via


Tag Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the Tag of the current PageGroup object.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Property Tag As String
'Usage
Dim instance As PageGroup
Dim value As String

value = instance.Tag

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

Property Value

Type: System..::.String
The Tag of the PageGroup. May not be greater than 25 characters. May not be nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
PropertyNullValidationException

An attempt was made to set the Tag to nullNothingnullptra null reference (Nothing in Visual Basic).

StringLengthValidationException

An attempt was made to set the Tag to a string that was too long or to an empty string.

Remarks

When the object is saved, this property must be not nullNothingnullptra null reference (Nothing in Visual Basic). The maximum length is 25 characters. When setting this property, leading and/or trailing whitespace is removed. Tag must be unique and is the key in the PageGroupCollection.

Permissions

See Also

Reference

PageGroup Class

PageGroup Members

Microsoft.CommerceServer.Marketing Namespace