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
ms870900.protmethod(en-US,CS.70).gif PropertyValidationException()()() Initializes a new instance of the PropertyValidationException class.
ms870900.protmethod(en-US,CS.70).gif PropertyValidationException(String) Initializes a new instance of the PropertyValidationException class with the specified error message.
ms870900.protmethod(en-US,CS.70).gif PropertyValidationException(SerializationInfo, StreamingContext) Initializes a new instance of the PropertyValidationException class with the specified serialization and streaming context information.
ms870900.protmethod(en-US,CS.70).gif 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.
ms870900.protmethod(en-US,CS.70).gif PropertyValidationException(String, String) Initializes a new instance of the PropertyValidationException with the specified error message and the name of the property caused it.
ms870900.protmethod(en-US,CS.70).gif 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

PropertyValidationException Members

Microsoft.CommerceServer Namespace