Partager via


EnumeratedValueValidationException Class

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

The exception that is thrown when a property contains a value that cannot be converted to a specified enumeration type.

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

Syntax

'Declaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class EnumeratedValueValidationException _
    Inherits PropertyValidationException
'Usage
Dim instance As EnumeratedValueValidationException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class EnumeratedValueValidationException : PropertyValidationException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class EnumeratedValueValidationException : public PropertyValidationException
public class EnumeratedValueValidationException extends PropertyValidationException

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.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    Microsoft.CommerceServer..::.PropertyValidationException
      Microsoft.CommerceServer.Marketing..::.EnumeratedValueValidationException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

EnumeratedValueValidationException Members

Microsoft.CommerceServer.Marketing Namespace