DateValidationException Constructor (String, String, DateTime, Exception)
Initializes a new instance of the DateValidationException class with the specified error message, parameters, and inner exception.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
propertyName As String, _
actualDate As DateTime, _
inner As Exception _
)
'Usage
Dim message As String
Dim propertyName As String
Dim actualDate As DateTime
Dim inner As Exception
Dim instance As New DateValidationException(message, _
propertyName, actualDate, inner)
public DateValidationException(
string message,
string propertyName,
DateTime actualDate,
Exception inner
)
public:
DateValidationException(
String^ message,
String^ propertyName,
DateTime actualDate,
Exception^ inner
)
public function DateValidationException(
message : String,
propertyName : String,
actualDate : DateTime,
inner : Exception
)
Parameters
- message
Type: System..::.String
The error message that explains the reason for the exception.
- propertyName
Type: System..::.String
Name of the property that violated the value range constraint.
- actualDate
Type: System..::.DateTime
Actual DateTime value that causes the exception.
- inner
Type: System..::.Exception
The exception that is the cause of the current exception, or a nullNothingnullptra null reference (Nothing in Visual Basic) reference (Nothing in Visual Basic) if no inner exception is specified.
Remarks
If the inner parameter is not a nullNothingnullptra null reference (Nothing in Visual Basic) reference, the current exception is raised in a catch block that handles the inner exception.
The exception that is thrown when an attempt is made to set a DateTime property outside of the expected range of values.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DateValidationException Members