Click or drag to resize
StringCompareToFieldValidationRule Class
Rule is used to compare two fields of string value types.
Inheritance Hierarchy
SystemObject
  Kentico.Forms.Web.MvcValidationRule
    Kentico.Forms.Web.MvcValidationRuleString
      Kentico.Forms.Web.MvcCompareToFieldValidationRuleString
        Kentico.Forms.Web.MvcStringCompareToFieldValidationRule

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
[SerializableAttribute]
public class StringCompareToFieldValidationRule : CompareToFieldValidationRule<string>

The StringCompareToFieldValidationRule type exposes the following members.

Constructors
  NameDescription
Public methodStringCompareToFieldValidationRule
Top
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