Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​ComponentModel.​DataAnnotations.​ValidationException

Assembly: System.ComponentModel.Annotations

Inheritance: object → Exception → ValidationException

Implemented Interfaces

Represents the exception that occurs during validation of a data field when the <see cref="T:System.ComponentModel.DataAnnotations.ValidationAttribute" /> class is used.

Properties

ValidationAttribute
Gets the instance of the <see cref="T:System.ComponentModel.DataAnnotations.ValidationAttribute" /> class that triggered this exception.
ValidationResult
Gets the <see cref="P:System.ComponentModel.DataAnnotations.ValidationException.ValidationResult" /> instance that describes the validation error.
public object
Value
Gets the value of the object that causes the <see cref="T:System.ComponentModel.DataAnnotations.ValidationAttribute" /> class to trigger this exception.
public string
HelpLink
public int
HResult
public Exception
InnerException
public string
Message
public string
Source
public string
StackTrace
TargetSite

Methods

public Exception
GetBaseException​()
Inherited from Exception
public Type
GetType​()
Inherited from Exception
public string
ToString​()
Inherited from Exception
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object