Skip to main content
.NET Framework 4.6.2+

RuleStringComparisonAttribute Constructors

Defines a validation rule that demands the target string type property’s value satisfy a specified condition.
Name Parameters Description
RuleStringComparisonAttribute(DefaultContexts, StringComparisonType, String) targetContexts, operatorType, operandValue Initializes a new instance of the RuleStringComparisonAttribute class.
RuleStringComparisonAttribute(StringComparisonType, String) operatorType, operandValue Initializes a new instance of the RuleStringComparisonAttribute class.
RuleStringComparisonAttribute(String, DefaultContexts, StringComparisonType, String, String) id, targetContexts, operatorType, operandValue, messageTemplate Initializes a new instance of the RuleStringComparisonAttribute class.
RuleStringComparisonAttribute(String, DefaultContexts, StringComparisonType, String) id, targetContexts, operatorType, operandValue Initializes a new instance of the RuleStringComparisonAttribute class.
RuleStringComparisonAttribute(String, String, StringComparisonType, String, String) id, targetContextIDs, operatorType, operandValue, messageTemplate Initializes a new instance of the RuleStringComparisonAttribute class.
RuleStringComparisonAttribute(String, String, StringComparisonType, String) id, targetContextIDs, operatorType, operandValue Initializes a new instance of the RuleStringComparisonAttribute class.
See Also