Share via


DateRangeValidationException Constructor (String)

Initializes a new instance of the DateRangeValidationException class with a specified error message.

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

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
'Usage
Dim message As String

Dim instance As New DateRangeValidationException(message)
public DateRangeValidationException(
    string message
)
public:
DateRangeValidationException(
    String^ message
)
public function DateRangeValidationException(
    message : String
)

Parameters

  • message
    Type: System..::.String
    The error message that explains the reason for the exception.

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.

Permissions

See Also

Reference

DateRangeValidationException Class

DateRangeValidationException Members

DateRangeValidationException Overload

Microsoft.CommerceServer.Marketing Namespace