Click or drag to resize
NumericCompareToFieldValidationRuleTValue Class
Shared validation rule implementation used to compare two fields of numeric value types.
Inheritance Hierarchy
SystemObject
  Kentico.Forms.Web.MvcValidationRule
    Kentico.Forms.Web.MvcValidationRuleTValue
      Kentico.Forms.Web.MvcCompareToFieldValidationRuleTValue
        Kentico.Forms.Web.MvcNumericCompareToFieldValidationRuleTValue
          Kentico.Forms.Web.MvcDecimalNumericCompareToFieldValidationRule
          Kentico.Forms.Web.MvcDoubleNumericCompareToFieldValidationRule
          Kentico.Forms.Web.MvcIntNumericCompareToFieldValidationRule

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public abstract class NumericCompareToFieldValidationRule<TValue> : CompareToFieldValidationRule<TValue>
where TValue : Object, IComparable<TValue>

Type Parameters

TValue
Specific type of the compared numeric values.

The NumericCompareToFieldValidationRuleTValue type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyComparisonType
Determines which type of comparison is used.
Public propertyDependeeFieldGuid
GUID of the field validated against.
(Inherited from CompareToFieldValidationRuleTValue.)
Public propertyDependeeFieldValue
Gets strongly typed value of the field validated against.
(Inherited from CompareToFieldValidationRuleTValue.)
Public propertyErrorMessage
Gets or sets the error message to be shown when the form component's value is invalid.
(Inherited from ValidationRule.)
Public propertyInstanceIdentifier
Gets or sets identifier of the validation rule instance.
(Inherited from ValidationRule.)
Public propertyTitle
Gets a title for this instance of validation rule.
(Inherited from ValidationRule.)
Top
Methods
See Also