Class Rule
A manifest model class that represents a validation rule for a Value.
Inheritance
Inherited Members
Namespace: CSF.Validation.ManifestModel
Assembly: CSF.Validation.Abstractions.dll
Syntax
public class Rule
Remarks
This type roughly corresponds to Manifest
For more information about when and how to use the manifest model, see the article Using the Manifest Model
Properties
| Improve this Doc View SourceDependencies
Gets or sets a collection of identifiers of dependencies for the current rule.
Declaration
public ICollection<RelativeIdentifier> Dependencies { get; set; }
Property Value
Type | Description |
---|---|
System. |
RuleName
Gets or sets an optional name for the rule, which uniquely identifies it from other rules of the same type upon the same validated value.
Declaration
public string RuleName { get; set; }
Property Value
Type | Description |
---|---|
System. |
RulePropertyValues
Gets or sets a dictionary which indicates property values to be set upon the rule instance after it is constructed. This allows simple configuration/parameterisation of rule types.
Declaration
public IDictionary<string, object> RulePropertyValues { get; set; }
Property Value
Type | Description |
---|---|
System. |
RuleTypeName
Gets or sets the type name of the validation rule logic class.
Declaration
public string RuleTypeName { get; set; }
Property Value
Type | Description |
---|---|
System. |