DiscountPrioritizationException Constructor (String)
Initializes a new instance of the DiscountPrioritizationException class with a specified error message.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
message As String _
)
'Usage
Dim message As String
Dim instance As New DiscountPrioritizationException(message)
public DiscountPrioritizationException(
string message
)
public:
DiscountPrioritizationException(
String^ message
)
public function DiscountPrioritizationException(
message : String
)
Parameters
- message
Type: System..::.String
The error message that explains the reason for the exception.
Remarks
DiscountPrioritizationException is thrown if an invalid priority is given as a parameter to the individual or bulk discount prioritization methods. Priority values for individual discount prioritization cannot be greater than the maximum priority in the system plus one (max(priority) + 1). Priority values for bulk prioritization should not be changed by more than twice the bulk prioritization dataset size.
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
DiscountPrioritizationException Class
DiscountPrioritizationException Members