Partager via


IntegerValueValidationException Constructor (String, String)

Initializes a new instance of the IntegerValueValidationException class with a specified error message and a reference to the name of the property that is the cause of this exception.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    propertyName As String _
)
'Usage
Dim message As String
Dim propertyName As String

Dim instance As New IntegerValueValidationException(message, _
    propertyName)
public IntegerValueValidationException(
    string message,
    string propertyName
)
public:
IntegerValueValidationException(
    String^ message, 
    String^ propertyName
)
public function IntegerValueValidationException(
    message : String, 
    propertyName : String
)

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 constraint.

Remarks

The IntegerValueValidationException is thrown when a property is expected to contain an integer but does not.

Permissions

See Also

Reference

IntegerValueValidationException Class

IntegerValueValidationException Members

IntegerValueValidationException Overload

Microsoft.CommerceServer.Marketing Namespace