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

RuleValueComparisonAttribute Constructors

Defines a validation rule that demands the target property's value satisfy a specified condition.
Name Parameters Description
RuleValueComparisonAttribute(DefaultContexts, ValueComparisonType, Object) targetContexts, operatorType, rightOperand Initializes a new instance of the RuleValueComparisonAttribute class.
RuleValueComparisonAttribute(ValueComparisonType, Object) operatorType, rightOperand Initializes a new instance of the RuleValueComparisonAttribute class.
RuleValueComparisonAttribute(String, DefaultContexts, ValueComparisonType, Object) id, targetContexts, operatorType, rightOperand Initializes a new instance of the RuleValueComparisonAttribute class.
RuleValueComparisonAttribute(String, DefaultContexts, ValueComparisonType, Object, String) id, targetContexts, operatorType, rightOperand, messageTemplate Initializes a new instance of the RuleValueComparisonAttribute class.
RuleValueComparisonAttribute(String, DefaultContexts, ValueComparisonType, String, ParametersMode) id, targetContexts, operatorType, rightOperand, mode Initializes a new instance of the RuleValueComparisonAttribute class.
RuleValueComparisonAttribute(String, DefaultContexts, ValueComparisonType, String, String, ParametersMode) id, targetContexts, operatorType, rightOperand, messageTemplate, mode Initializes a new instance of the RuleValueComparisonAttribute class.
RuleValueComparisonAttribute(String, String, ValueComparisonType, Object) id, targetContextIDs, operatorType, rightOperand Initializes a new instance of the RuleValueComparisonAttribute class.
RuleValueComparisonAttribute(String, String, ValueComparisonType, Object, String) id, targetContextIDs, operatorType, rightOperand, messageTemplate Initializes a new instance of the RuleValueComparisonAttribute class.
RuleValueComparisonAttribute(String, String, ValueComparisonType, String, ParametersMode) id, targetContextIDs, operatorType, rightOperand, mode Initializes a new instance of the RuleValueComparisonAttribute class.
RuleValueComparisonAttribute(String, String, ValueComparisonType, String, String, ParametersMode) id, targetContextIDs, operatorType, rightOperand, messageTemplate, mode Initializes a new instance of the RuleValueComparisonAttribute class.
See Also