Click or drag to resize

RuleDesc Class

The extended rule's class. Implemented to add KnownTypeAttribute for types defined for ERPRO ER.Settings only. Hash calculation is performed here as it cannot be done within the base class (there is insufficient info to serialize abstract types of actions defined herein).
Inheritance Hierarchy
SystemObject
  SettingsRuleDesc

Namespace:  Settings
Assembly:  CodeTwo.ER.Settings.2 (in CodeTwo.ER.Settings.2.dll) Version: 2.15.0.0
Syntax
public class RuleDesc : IRule

The RuleDesc type exposes the following members.

Constructors
  NameDescription
Public methodRuleDesc
Initializes a new instance of the RuleDesc class
Public methodRuleDesc(String, Boolean)
Initializes a new instance of the RuleDesc class
Top
Properties
  NameDescription
Public propertyActions
Actions to be performed in a given rule.
Public propertyActive
If it is false then the rule will not be processed. User can adjust this flag within UI.
Public propertyConditions
Collection of filters. If the filters respond positively than the actions are executed in a rule.
Public propertyContentHash
Hash that enables assessing if the content of a rule has been changed in comparison to the previous value. The ContentHash property is not taken into account while calculating the hash.
Public propertyDescription
Unrestricted description entered by a user. This text is not being analyzed.
Public propertyExceptions
Collection of filters. If the filters respond positively than the actions are executed in a rule.
Public propertyID
The unique ID - GUID that identifies a rule. Setter is used only for a serialization.
Public propertyName
The name of rule specified by a user. It doesn't have to be unique.
Public propertyProcessingOptions
Used in the higher level objects to designate rules for further processing depending on the particular situation (e.g. if a rule is found or not).
Top
Methods
  NameDescription
Public methodCalculateContentHash
Executes conversion of hash in the ContentHash property. Hash doesn't include the value of the ContentHash property.
Top
See Also