Jaa


DuplicatePromoCodeException Class

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

The exception that is thrown when a user is trying to save a PromoCodeDefintion with a duplicate PublicPromoCode.

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

Syntax

'Declaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class DuplicatePromoCodeException _
    Inherits Exception _
    Implements ISerializable
'Usage
Dim instance As DuplicatePromoCodeException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class DuplicatePromoCodeException : Exception, ISerializable
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class DuplicatePromoCodeException : public Exception, 
    ISerializable
public class DuplicatePromoCodeException extends Exception implements ISerializable

Remarks

The value of a PublicPromoCode, within the PromoCodeDefinition class, must be unique. PublicPromoCode only has meaning on Public promotion codes.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    Microsoft.CommerceServer.Marketing..::.DuplicatePromoCodeException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DuplicatePromoCodeException Members

Microsoft.CommerceServer.Marketing Namespace