This documentation is archived and is not being maintained.

RuleExpressionCondition Class

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


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

public sealed class RuleExpressionCondition : RuleCondition

The RuleExpressionCondition type exposes the following members.

Public methodRuleExpressionCondition()Initializes a new instance of the RuleExpressionCondition class.
Public methodRuleExpressionCondition(CodeExpression)Initializes a new instance of the RuleExpressionCondition class by using a specified code expression.
Public methodRuleExpressionCondition(String)Initializes a new instance of the RuleExpressionCondition class by using a specified name.
Public methodRuleExpressionCondition(String, CodeExpression)Initializes a new instance of the RuleExpressionCondition class by using a specified name and code expression.

Public propertyExpressionGets or sets the expression condition to evaluate.
Public propertyNameGets or sets the name of the condition to evaluate. (Overrides RuleCondition.Name.)

Public methodCloneCreates a deep copy of the current RuleExpressionCondition. (Overrides RuleCondition.Clone().)
Public methodEqualsDetermines whether two object instances are equal. (Overrides Object.Equals(Object).)
Public methodEvaluateEvaluates the expression. (Overrides RuleCondition.Evaluate(RuleExecution).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDependenciesGets the dependencies for the RuleExpressionCondition. (Overrides RuleCondition.GetDependencies(RuleValidation).)
Public methodGetHashCodeReturns the hash code for this instance. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOnRuntimeInitializedCalled when all properties have been given values. (Overrides RuleCondition.OnRuntimeInitialized().)
Public methodToStringReturns the string value of the expression condition. (Overrides Object.ToString().)
Public methodValidateVerifies that the expression is configured correctly and has no errors. (Overrides RuleCondition.Validate(RuleValidation).)

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.

.NET Framework

Supported in: 4, 3.5, 3.0

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.

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