Partajați prin


PropertyValidationException Class

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

The exception that is thrown when the value of an entity property violates pre-defined constraints.

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

Syntax

'Declaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public MustInherit Class PropertyValidationException _
    Inherits Exception _
    Implements ISerializable
'Usage
Dim instance As PropertyValidationException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public abstract class PropertyValidationException : Exception, ISerializable
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class PropertyValidationException abstract : public Exception, 
    ISerializable
public abstract class PropertyValidationException extends Exception implements ISerializable

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.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    Microsoft.CommerceServer..::.PropertyValidationException
      Microsoft.CommerceServer.Catalog..::.MaximumLimitException
      Microsoft.CommerceServer.Marketing..::.DateRangeValidationException
      Microsoft.CommerceServer.Marketing..::.DateValidationException
      Microsoft.CommerceServer.Marketing..::.DiscountPrioritizationException
      Microsoft.CommerceServer.Marketing..::.EnumeratedValueValidationException
      Microsoft.CommerceServer.Marketing..::.IntegerValueValidationException
      Microsoft.CommerceServer.Marketing..::.PromoCodeUsageValidationException
      Microsoft.CommerceServer..::.MaximumValueValidationException
      Microsoft.CommerceServer..::.MinimumValueValidationException
      Microsoft.CommerceServer..::.PropertyNullValidationException
      Microsoft.CommerceServer..::.StringLengthValidationException

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

PropertyValidationException Members

Microsoft.CommerceServer Namespace