New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class ValidationResult

Inheritance: objectValidationResult

Constructors

Initializes a new instance of the ValidationResult class.

C#
public ValidationResult(bool isValid, object errorContent)
Parameters:isValidbool

If set to true [is valid].

errorContentobject

Content of the error.

Properties

Gets the content of the error.

C#
public object ErrorContent { get; }
Property Value:

The content of the error.

Gets a value indicating whether this instance is valid.

C#
public bool IsValid { get; }
Property Value:

true if this instance is valid; otherwise, false.

Gets the validation result.

C#
public static ValidationResult ValidResult { get; }
Property Value:

The validation result.

Methods

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

Operators

Implements the operator !=.

C#
public static bool operator !=(ValidationResult left, ValidationResult right)
Parameters:leftValidationResult

The left.

rightValidationResult

The right.

Returns:

bool

The result of the operator.

Implements the operator ==.

C#
public static bool operator ==(ValidationResult left, ValidationResult right)
Parameters:leftValidationResult

The left.

rightValidationResult

The right.

Returns:

bool

The result of the operator.