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.​ValidationResult

Assembly: System.ComponentModel.Annotations

Inheritance: object → ValidationResult

Represents a container for the results of a validation request.

Fields and Constants

public static readonly ValidationResult
Success
Represents the success of the validation.

Properties

public string
ErrorMessage
Gets the error message for the validation.
MemberNames
Gets the collection of member names that indicate which fields have validation errors.

Methods

public string
ToString​()
Returns a string representation of the current validation result.
Returns The current validation result.
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