Class ValidationResult
Represents the result returned by the ValidationRule.Validate method that indicates whether the checked value passed the ValidationRule.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.GridView
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public class ValidationResult
Constructors
ValidationResult(Boolean, Object)
Initializes a new instance of the ValidationResult class.
Declaration
public ValidationResult(bool isValid, object errorContent)
Parameters
System.Boolean
isValid
If set to |
System.Object
errorContent
Content of the error. |
Properties
ErrorContent
Gets the content of the error.
Declaration
public object ErrorContent { get; }
Property Value
System.Object
The content of the error. |
IsValid
Gets a value indicating whether this instance is valid.
Declaration
public bool IsValid { get; }
Property Value
System.Boolean
|
ValidResult
Gets the validation result.
Declaration
public static ValidationResult ValidResult { get; }
Property Value
ValidationResult
The validation result. |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
Operators
Equality(ValidationResult, ValidationResult)
Implements the operator ==.
Declaration
public static bool operator ==(ValidationResult left, ValidationResult right)
Parameters
ValidationResult
left
The left. |
ValidationResult
right
The right. |
Returns
System.Boolean
The result of the operator. |
Inequality(ValidationResult, ValidationResult)
Implements the operator !=.
Declaration
public static bool operator !=(ValidationResult left, ValidationResult right)
Parameters
ValidationResult
left
The left. |
ValidationResult
right
The right. |
Returns
System.Boolean
The result of the operator. |