Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ValidationException Constructor

 

Initializes a new instance of the ValidationException class.

Namespace:   System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

NameDescription
System_CAPS_pubmethodValidationException()

Initializes a new instance of the ValidationException class using an error message generated by the system.

System_CAPS_protmethodValidationException(SerializationInfo^, StreamingContext)

Initializes a new instance of the ValidationException class using serialized data.

System_CAPS_pubmethodValidationException(String^)

Initializes a new instance of the ValidationException class using a specified error message.

System_CAPS_pubmethodValidationException(String^, Exception^)

Initializes a new instance of the ValidationException class using a specified error message and a collection of inner exception instances.

System_CAPS_pubmethodValidationException(String^, ValidationAttribute^, Object^)

Initializes a new instance of the ValidationException class using a specified error message, a validation attribute, and the value of the current exception.

System_CAPS_pubmethodValidationException(ValidationResult^, ValidationAttribute^, Object^)

Initializes a new instance of the ValidationException class by using a validation result, a validation attribute, and the value of the current exception.

Return to top
Show:
© 2017 Microsoft