MaximumValueValidationException Constructor (String, String, Decimal, Decimal)
Initializes a new instance of the MaximumValueValidationException class with the specified error message and parameters.
Namespace: Microsoft.CommerceServer
Assembly: Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
propertyName As String, _
maxValue As Decimal, _
actualValue As Decimal _
)
'Usage
Dim message As String
Dim propertyName As String
Dim maxValue As Decimal
Dim actualValue As Decimal
Dim instance As New MaximumValueValidationException(message, _
propertyName, maxValue, actualValue)
public MaximumValueValidationException(
string message,
string propertyName,
decimal maxValue,
decimal actualValue
)
public:
MaximumValueValidationException(
String^ message,
String^ propertyName,
Decimal maxValue,
Decimal actualValue
)
public function MaximumValueValidationException(
message : String,
propertyName : String,
maxValue : decimal,
actualValue : decimal
)
Parameters
- message
Type: System..::.String
The error message that explains the reason for the exception.
- propertyName
Type: System..::.String
Name of the property that violated the range constraint.
- maxValue
Type: System..::.Decimal
Maximum value allowed for this property. If no maximum is enforced, this value is the maximum value allowed for the decimal type.
- actualValue
Type: System..::.Decimal
Actual value of this property.
Remarks
MaximumValueValidationException is thrown when an attempt is made to save an entity and at least one numeric property of that entity exceeds the maximum allowed value.
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
MaximumValueValidationException Class
MaximumValueValidationException Members