Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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).)
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.)
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.6, 4.5, 4, 3.5, 3.0

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