.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 | |
|---|---|---|
|
RuleExpressionCondition() | Initializes a new instance of the RuleExpressionCondition class. |
|
RuleExpressionCondition(CodeExpression) | Initializes a new instance of the RuleExpressionCondition class by using a specified code expression. |
|
RuleExpressionCondition(String) | Initializes a new instance of the RuleExpressionCondition class by using a specified name. |
|
RuleExpressionCondition(String, CodeExpression) | Initializes a new instance of the RuleExpressionCondition class by using a specified name and code expression. |
Properties
| Name | Description | |
|---|---|---|
|
Expression | Gets or sets the expression condition to evaluate. |
|
Name | Gets or sets the name of the condition to evaluate. (Overrides RuleCondition.Name.) |
Methods
| Name | Description | |
|---|---|---|
|
Clone | Creates a deep copy of the current RuleExpressionCondition. (Overrides RuleCondition.Clone().) |
|
Equals | Determines whether two object instances are equal. (Overrides Object.Equals(Object).) |
|
Evaluate | Evaluates the expression. (Overrides RuleCondition.Evaluate(RuleExecution).) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetDependencies | Gets the dependencies for the RuleExpressionCondition. (Overrides RuleCondition.GetDependencies(RuleValidation).) |
|
GetHashCode | Returns the hash code for this instance. (Overrides Object.GetHashCode().) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
OnRuntimeInitialized | Called when all properties have been given values. (Overrides RuleCondition.OnRuntimeInitialized().) |
|
ToString | Returns the string value of the expression condition. (Overrides Object.ToString().) |
|
Validate | Verifies that the expression is configured correctly and has no errors. (Overrides RuleCondition.Validate(RuleValidation).) |
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.0Platforms
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