Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ValidationResult Members

Represents the result returned by the ValidationRule.Validate method that indicates whether the checked value passed the ValidationRule.

The ValidationResult type exposes the following members.

Public method ValidationResult Initializes a new instance of the ValidationResult class.

Public method Equals Compares the specified instance and the current instance of ValidationResult for value equality. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for this ValidationResult. (Overrides Object.GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Public operator Static member Equality Compares two ValidationResult objects for value equality.
Public operator Static member Inequality Compares two ValidationResult objects for value inequality.

Public property ErrorContent Gets an object that provides additional information about the invalidity.
Public property IsValid Gets a value that indicates whether the value checked against the ValidationRule is valid.
Public property Static member ValidResult Gets a valid instance of ValidationResult.

Community Additions

© 2015 Microsoft