Udostępnij za pośrednictwem


Name Property

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

Gets or sets the name of the current PromoCodeDefinition 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 PromoCodeDefinition
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 PromoCodeDefinition.

Exceptions

Exception Condition
StringLengthValidationException

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

PropertyNullValidationException

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

Remarks

Stores the name for the PromoCodeDefinition object. Name may not be longer than 50 characters. When setting the property, leading and trailing whitespace is removed. The Name must be unique.

Permissions

See Also

Reference

PromoCodeDefinition Class

PromoCodeDefinition Members

Microsoft.CommerceServer.Marketing Namespace