Partajați prin


DateRangeValidationException Class

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

The exception that is thrown when the date range properties of an entity is invalid.

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

Syntax

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

Remarks

The exception that is thrown when an attempt is made to save an entity which contains an invalid date range. Entities that contain date ranges include Campaign and Discount objects. Both of these include the properties StartDate and EndDate. A date range is invalid if the EndDate is earlier than the StartDate.

Inheritance Hierarchy

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

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

DateRangeValidationException Members

Microsoft.CommerceServer.Marketing Namespace