DiscountPrioritizationException Constructor (SerializationInfo, StreamingContext)
Initializes a new instance of the DiscountPrioritizationException class with the specified serialization data and streaming context information.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim info As SerializationInfo
Dim context As StreamingContext
Dim instance As New DiscountPrioritizationException(info, context)
protected DiscountPrioritizationException(
SerializationInfo info,
StreamingContext context
)
protected:
DiscountPrioritizationException(
SerializationInfo^ info,
StreamingContext context
)
protected function DiscountPrioritizationException(
info : SerializationInfo,
context : StreamingContext
)
Parameters
- info
Type: System.Runtime.Serialization..::.SerializationInfo
The SerializationInfo containing serialization information about the exception being thrown.
- context
Type: System.Runtime.Serialization..::.StreamingContext
The StreamingContext that contains contextual information about the source or destination.
Remarks
This constructor is needed for serialization when exception propagates from a remoting server to the client.
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