LoadedRule Class
Assembly: CodeEffects.Rule.Repository.dll
Namespace: CodeEffects.Rule.Repository
Summary
Describes one rule of a LoadedRuleset: which rule it is and which version of it the ruleset holds.
Syntax
public class LoadedRule
You never create this class. The Rules list and the Rule(..) methods of a LoadedRuleset return its instances, and all of its properties are read-only. A ruleset holds the live version of each rule, so a LoadedRule always describes a version that was live when the ruleset was loaded.
Properties
Id
Type: System.String
Gets the ID of the rule, as its Rule XML carries it. Pass it to Evaluator<TSource>.Evaluate(source, ruleId) to evaluate this rule of the ruleset.
IsCalled
Type: System.Boolean
Gets a value indicating whether the rule was not asked for, but is called or executed by a rule that was. Such a rule is in the ruleset so that the engine finds it.
IsEvaluationType
Type: System.Boolean
Gets true for an evaluation type rule and false for an execution type rule.
Name
Type: System.String
Gets the name of the rule.
RuleVersionId
Type: System.Int32
Gets the ID of the live rule version that the ruleset holds.
RuleVersionName
Type: System.String
Gets the name of that version.
SourceAlias
Type: System.String
Gets the alias of the rule's source object: its class name, unless you gave it another.
SourceVersionId
Type: System.Int32
Gets the ID of the source version that the rule version was written against.
Methods