Share via


MinimumValueValidationException Constructor (String, String, Decimal, Decimal)

Initializes a new instance of the MinimumValueValidationException 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, _
    minValue As Decimal, _
    actualValue As Decimal _
)
'Usage
Dim message As String
Dim propertyName As String
Dim minValue As Decimal
Dim actualValue As Decimal

Dim instance As New MinimumValueValidationException(message, _
    propertyName, minValue, actualValue)
public MinimumValueValidationException(
    string message,
    string propertyName,
    decimal minValue,
    decimal actualValue
)
public:
MinimumValueValidationException(
    String^ message, 
    String^ propertyName, 
    Decimal minValue, 
    Decimal actualValue
)
public function MinimumValueValidationException(
    message : String, 
    propertyName : String, 
    minValue : 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.

Remarks

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

See Also

Reference

MinimumValueValidationException Class

MinimumValueValidationException Members

MinimumValueValidationException Overload

Microsoft.CommerceServer Namespace