Name Property

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

Gets or sets the name of the current DisplayProperty object.

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

Syntax

'Declaration
Public Property Name As String
'Usage
Dim instance As DisplayProperty
Dim value As String

value = instance.Name

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

Property Value

Type: System..::.String
The name of the DisplayProperty. May not be greater than 50 characters. May not be nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
PropertyNullValidationException

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

StringLengthValidationException

An attempt was made to set this property to a string that was too long or to an empty string.

Remarks

The name of the template property. This property is required at creation time. The maximum length is 50 characters. When setting this property, leading and/or trailing whitespace is removed. Name must be unique.

Permissions

See Also

Reference

DisplayProperty Class

DisplayProperty Members

Microsoft.CommerceServer.Marketing Namespace