MinimumValueValidationException Constructor (String, String, Decimal, Decimal, Exception)
Initializes a new instance of the MinimumValueValidationException class with the specified error message, parameters, and the inner exception that is the cause of this exception.
Namespace: Microsoft.CommerceServer
Assembly: Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
propertyName As String, _
minValue As Decimal, _
actualValue As Decimal, _
inner As Exception _
)
'Usage
Dim message As String
Dim propertyName As String
Dim minValue As Decimal
Dim actualValue As Decimal
Dim inner As Exception
Dim instance As New MinimumValueValidationException(message, _
propertyName, minValue, actualValue, _
inner)
public MinimumValueValidationException(
string message,
string propertyName,
decimal minValue,
decimal actualValue,
Exception inner
)
public:
MinimumValueValidationException(
String^ message,
String^ propertyName,
Decimal minValue,
Decimal actualValue,
Exception^ inner
)
public function MinimumValueValidationException(
message : String,
propertyName : String,
minValue : decimal,
actualValue : decimal,
inner : Exception
)
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.
- minValue
Type: System..::.Decimal
Minimum value allowed for this property.
- actualValue
Type: System..::.Decimal
Actual value of this property.
- inner
Type: System..::.Exception
The exception that is the cause of the current exception, or a nullNothingnullptra null reference (Nothing in Visual Basic) reference (Nothing in Visual Basic) if no inner exception is specified.
Remarks
If the inner parameter is not a nullNothingnullptra null reference (Nothing in Visual Basic) reference, the current exception is raised in a catch block that handles the inner exception.
MinimumValueValidationException is thrown when an attempt is made to save an entity and at least one numeric property of that entity is smaller than the minimum allowed value for that property.
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
MinimumValueValidationException Class
MinimumValueValidationException Members