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.
- promoCodeValue
Type: System..::.String
The PromoCodeDefinition name that is duplicated.
Remarks
The value of a PublicPromoCode, within the PromoCodeDefinition class, must be unique. PublicPromoCode only has meaning on Public promotion codes.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DuplicatePromoCodeException Class
DuplicatePromoCodeException Members