EnumeratedValueValidationException Constructor

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Initializes a new instance of the EnumeratedValueValidationException class.

Overload List

  Name Description
ms989383.pubmethod(en-US,CS.70).gif EnumeratedValueValidationException()()() Initializes a new instance of the EnumeratedValueValidationException class.
ms989383.pubmethod(en-US,CS.70).gif EnumeratedValueValidationException(String) Initializes a new instance of the EnumeratedValueValidationException class with a specified error message.
ms989383.protmethod(en-US,CS.70).gif EnumeratedValueValidationException(SerializationInfo, StreamingContext) Initializes a new instance of the EnumeratedValueValidationException class with serialized data and streaming context information.
ms989383.pubmethod(en-US,CS.70).gif EnumeratedValueValidationException(String, Exception) Initializes a new instance of the EnumeratedValueValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
ms989383.pubmethod(en-US,CS.70).gif EnumeratedValueValidationException(String, String, String, String) Initializes a new instance of the EnumeratedValueValidationException class with a specified error message and a reference to the property that caused the exception, the enumeration type, and the inner exception that is the cause of this exception.
ms989383.pubmethod(en-US,CS.70).gif EnumeratedValueValidationException(String, String, String, String, Exception) Initializes a new instance of the EnumeratedValueValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Top

Remarks

The EnumeratedValueValidationException is thrown when a property of an enumeration type failed validation. For example, when you attempt to establish a RecurrenceMonths and the value doesn't belong to RecurrenceMonths enumeration value or you use a DefaultFormat property with the value set to nullNothingnullptra null reference (Nothing in Visual Basic) or it does not belong to a MessageFormat enumeration value.

See Also

Reference

EnumeratedValueValidationException Class

EnumeratedValueValidationException Members

Microsoft.CommerceServer.Marketing Namespace