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