Class ValidationRuleConfiguration
Encapsulates ValidationRule with its ValidationRuleDefinition identifier.
public sealed class ValidationRuleConfiguration
- Inheritance
-
objectValidationRuleConfiguration
- Extension Methods
Constructors
ValidationRuleConfiguration()
Initializes a new instance of the ValidationRuleConfiguration class. This constructor serves for the purpose of deserialization.
public ValidationRuleConfiguration()
ValidationRuleConfiguration(string, ValidationRule)
Initializes a new instance of the ValidationRuleConfiguration class.
public ValidationRuleConfiguration(string identifier, ValidationRule validationRule)
Parameters
identifier
stringIdentifies type of the
validationRule
.validationRule
ValidationRuleValidation rule.
Exceptions
- ArgumentException
Thrown when
identifier
is null or empty.- ArgumentNullException
Thrown when
validationRule
is null.
Properties
Identifier
Gets or sets identifier of the ValidationRule.
public string Identifier { get; set; }
Property Value
- string
ValidationRule
Gets or sets validation rule.
public ValidationRule ValidationRule { get; set; }