Share via


DateRangeValidationException Constructor

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

Initializes a new instance of the DateRangeValidationException class.

Overload List

  Name Description
ms989366.pubmethod(en-US,CS.70).gif DateRangeValidationException()()() Initializes a new instance of the DateRangeValidationException class.
ms989366.pubmethod(en-US,CS.70).gif DateRangeValidationException(String) Initializes a new instance of the DateRangeValidationException class with a specified error message.
ms989366.protmethod(en-US,CS.70).gif DateRangeValidationException(SerializationInfo, StreamingContext) Initializes a new instance of the DateRangeValidationException class with the specified serialization data and streaming context information.
ms989366.pubmethod(en-US,CS.70).gif DateRangeValidationException(String, Exception) Initializes a new instance of the DateRangeValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
ms989366.pubmethod(en-US,CS.70).gif DateRangeValidationException(String, String, DateTime, DateTime) Initializes a new instance of the DateRangeValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
ms989366.pubmethod(en-US,CS.70).gif DateRangeValidationException(String, String, DateTime, DateTime, Exception) Initializes a new instance of the DateRangeValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Top

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.

See Also

Reference

DateRangeValidationException Class

DateRangeValidationException Members

Microsoft.CommerceServer.Marketing Namespace