The requested page is not available for the requested platform. You are viewing the content for Default platform.

CompareRuleBuilder Methods

A validation rule that demands that a validated editor has a value that is equal to a specified expression.

Name Description
ComparisonTarget(RazorBlock)

Specifies the function whose return value is used for comparison with the validated value.

ComparisonTarget(String)

Specifies the function whose return value is used for comparison with the validated value.

ComparisonType(ComparisonOperator)

Specifies the operator to be used for comparing the validated value with the target.

Equals(Object) Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(Object, Object) static Determines whether the specified object instances are considered equal.
(Inherited from Object)
GetHashCode() Serves as the default hash function.
(Inherited from Object)
GetType() Gets the Type of the current instance.
(Inherited from Object)
IgnoreEmptyValue(Boolean)

If set to true, empty values are valid.

IgnoreEmptyValue(JS)

If set to true, empty values are valid.

MemberwiseClone() Creates a shallow copy of the current Object.
(Inherited from Object)
Message(JS)

Specifies the message that is shown for end-users if the current rule is broken.

Message(String)

Specifies the message that is shown for end-users if the current rule is broken.

Option(String, Object)

Specifies an option by its name.

Reevaluate(Boolean)

Indicates whether or not the rule should be always checked for the target value or only when the target value changes.

Reevaluate(JS)

Indicates whether or not the rule should be always checked for the target value or only when the target value changes.

ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance.
(Inherited from Object)
ToString() Returns a string that represents the current object.
(Inherited from Object)
See Also