PropertyValidationException Constructor
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Initializes a new instance of the PropertyValidationException class.
Overload List
Name | Description | |
---|---|---|
PropertyValidationException()()() | Initializes a new instance of the PropertyValidationException class. | |
PropertyValidationException(String) | Initializes a new instance of the PropertyValidationException class with the specified error message. | |
PropertyValidationException(SerializationInfo, StreamingContext) | Initializes a new instance of the PropertyValidationException class with the specified serialization and streaming context information. | |
PropertyValidationException(String, Exception) | Initializes a new instance of the PropertyValidationException class with a specified error message and inner exception that is the cause of this exception. | |
PropertyValidationException(String, String) | Initializes a new instance of the PropertyValidationException with the specified error message and the name of the property caused it. | |
PropertyValidationException(String, String, Exception) | Initializes a new instance of the PropertyValidationException with the specified error message, name of the property, and inner exception.. |
Top
Remarks
PropertyValidationException is thrown when an attempt is made to save an entity and at least one property of that entity does not meet the specifications for the property. Examples of this include nullNothingnullptra null reference (Nothing in Visual Basic) values where not allowed, string values exceeding maximum length limits, or malformed data.
See Also
Reference
PropertyValidationException Class