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
- 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
IntegerValueValidationException Class
IntegerValueValidationException Members