.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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) id, targetContexts, 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, String, StringComparisonType, String) id, targetContextIDs, 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.
See Also