RuleExpressionCondition Class (System.Workflow.Activities.Rules)

Switch View :
ScriptFree
.NET Framework Class Library
RuleExpressionCondition Class

Defines the condition definition behind a RuleConditionReference. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  System.Workflow.Activities.Rules.RuleCondition
    System.Workflow.Activities.Rules.RuleExpressionCondition

Namespace:  System.Workflow.Activities.Rules
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)
Syntax

Visual Basic
<SerializableAttribute> _
Public NotInheritable Class RuleExpressionCondition _
	Inherits RuleCondition
C#
[SerializableAttribute]
public sealed class RuleExpressionCondition : RuleCondition
Visual C++
[SerializableAttribute]
public ref class RuleExpressionCondition sealed : public RuleCondition
F#
[<Sealed>]
[<SerializableAttribute>]
type RuleExpressionCondition =  
    class
        inherit RuleCondition
    end

The RuleExpressionCondition type exposes the following members.

Constructors

  Name Description
Public method RuleExpressionCondition() Initializes a new instance of the RuleExpressionCondition class.
Public method RuleExpressionCondition(CodeExpression) Initializes a new instance of the RuleExpressionCondition class by using a specified code expression.
Public method RuleExpressionCondition(String) Initializes a new instance of the RuleExpressionCondition class by using a specified name.
Public method RuleExpressionCondition(String, CodeExpression) Initializes a new instance of the RuleExpressionCondition class by using a specified name and code expression.
Top
Properties

  Name Description
Public property Expression Gets or sets the expression condition to evaluate.
Public property Name Gets or sets the name of the condition to evaluate. (Overrides RuleCondition.Name.)
Top
Methods

  Name Description
Public method Clone Creates a deep copy of the current RuleExpressionCondition. (Overrides RuleCondition.Clone().)
Public method Equals Determines whether two object instances are equal. (Overrides Object.Equals(Object).)
Public method Evaluate Evaluates the expression. (Overrides RuleCondition.Evaluate(RuleExecution).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetDependencies Gets the dependencies for the RuleExpressionCondition. (Overrides RuleCondition.GetDependencies(RuleValidation).)
Public method GetHashCode Returns the hash code for this instance. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnRuntimeInitialized Called when all properties have been given values. (Overrides RuleCondition.OnRuntimeInitialized().)
Public method ToString Returns the string value of the expression condition. (Overrides Object.ToString().)
Public method Validate Verifies that the expression is configured correctly and has no errors. (Overrides RuleCondition.Validate(RuleValidation).)
Top
Remarks

The RuleExpressionCondition class defines the base conditions evaluated when a RuleSet is executed.

This condition type is modeled with CodeDom types. For more information about CodeDom types, see CodeDOM Types Supported by Windows Workflow Foundation.

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference