ValidationException Constructor

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: