Partager via


Category Property

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

Gets or sets the name of the Expression Category for the current Expression object.

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

Syntax

'Declaration
Public Property Category As String
'Usage
Dim instance As Expression
Dim value As String

value = instance.Category

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

Property Value

Type: System..::.String
The name of the Expression Category that the current instance is a member of.

Exceptions

Exception Condition
StringLengthValidationException

An attempt was made to set the Category to an empty string or to a string that was greater than 30 characters.

Remarks

A Category can be used for multiple purposes in the Marketing system. Associated with each Category is a list of the profile definition names that expressions in the category can depend on. The category is also used as a scope in the AzMan role-based security. The maximum length of a Category name is 30 characters. When setting this property, leading and trailing whitespace is removed. In the Marketing system, an expression is required to belong to only a single category.

Permissions

See Also

Reference

Expression Class

Expression Members

Microsoft.CommerceServer.Marketing Namespace