Class
ValidationResult

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

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

cs-api-definition
public class ValidationResult

Inheritance: objectValidationResult

Constructors

ValidationResult(bool, object)

Initializes a new instance of the ValidationResult class.

Declaration

cs-api-definition
public ValidationResult(bool isValid, object errorContent)

Parameters

isValid

bool

If set to true [is valid].

errorContent

object

Content of the error.

Properties

ErrorContent

Gets the content of the error.

Declaration

cs-api-definition
public object ErrorContent { get; }

Property Value

object

The content of the error.

IsValid

Gets a value indicating whether this instance is valid.

Declaration

cs-api-definition
public bool IsValid { get; }

Property Value

bool

true if this instance is valid; otherwise, false.

ValidResult

Gets the validation result.

Declaration

cs-api-definition
public static ValidationResult ValidResult { get; }

Property Value

ValidationResult

The validation result.

Methods

Equals(object)

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides object.Equals(object)

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()

Operators

operator !=(ValidationResult, ValidationResult)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(ValidationResult left, ValidationResult right)

Parameters

left

ValidationResult

The left.

right

ValidationResult

The right.

Returns

bool

The result of the operator.

operator ==(ValidationResult, ValidationResult)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(ValidationResult left, ValidationResult right)

Parameters

left

ValidationResult

The left.

right

ValidationResult

The right.

Returns

bool

The result of the operator.