Jaa


DuplicatePromoCodeException Constructor (String, String)

Initializes a new instance of the DuplicatePromoCodeException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    promoCodeValue As String _
)
'Usage
Dim message As String
Dim promoCodeValue As String

Dim instance As New DuplicatePromoCodeException(message, _
    promoCodeValue)
public DuplicatePromoCodeException(
    string message,
    string promoCodeValue
)
public:
DuplicatePromoCodeException(
    String^ message, 
    String^ promoCodeValue
)
public function DuplicatePromoCodeException(
    message : String, 
    promoCodeValue : String
)

Parameters

  • message
    Type: System..::.String
    The error message that explains the reason for the exception.

Remarks

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

Permissions

See Also

Reference

DuplicatePromoCodeException Class

DuplicatePromoCodeException Members

DuplicatePromoCodeException Overload

Microsoft.CommerceServer.Marketing Namespace