Click or drag to resize
TaskRule Class
The base class for a task rule definition for a taskgroup preset element which is evaluated at generation time to perform the taskgroup element (if it evaluates to true) or not (if it's disabled or evaluates to false).
Inheritance Hierarchy

Namespace:  SD.LLBLGen.Pro.ApplicationCore.CodeGenerationMetaData.Tasks
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public abstract class TaskRule : INotifyAsChanged

The TaskRule type exposes the following members.

Constructors
  NameDescription
Protected methodTaskRule
Initializes a new instance of the PerformRule class.
Top
Properties
  NameDescription
Public propertyIsEnabled
Gets or sets a value indicating whether this instance is enabled.
Public propertyOperand
Gets or sets the operand.
Public propertyOperatorToUse
Gets or sets the operator to use.
Public propertySettingName
Gets or sets the name of the setting.
Public propertyTargetElementType
Gets or sets the type of the target element.
Public propertyXmlRootName
Gets the name of the XML root element to use for persisting the rule to xml.
Top
Methods
  NameDescription
Public methodCopyValues
Copies the values into this instance
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluate
Evaluates this rule on the specified element and project. If the rule is disabled, it's automatically accepted. If the rule evaluates to false, the rule is denied and the associated taskgroupelement won't be performed.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsEmpty
Determines whether this instance is empty. This is true if there's no operator defined.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventHasBeenChanged
Event which is raised when a property of this parameter has been changed.
Top
Remarks
An enabled rule with a setting which can't be found is resolved to true. Setting name is the name of a setting at the project level
See Also