RuleExpressionWalker.Validate Method (RuleValidation, CodeExpression, Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Verifies that the expression and child nodes are configured correctly and has no errors.

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

public static RuleExpressionInfo Validate(
	RuleValidation validation,
	CodeExpression expression,
	bool isWritten
)

Parameters

validation
Type: System.Workflow.Activities.Rules.RuleValidation

The RuleValidation to manage the validation process.

expression
Type: System.CodeDom.CodeExpression

The CodeExpression to evaluate.

isWritten
Type: System.Boolean

true if fields and properties written by a RuleAction are stored in by RuleAnalysis; otherwise, false.

Exception Condition
ArgumentNullException

validation is a null reference (Nothing in Visual Basic).

InvalidOperationException

The expression is null and the errors collection on the RuleValidation object is a null reference (Nothing).

.NET Framework
Available since 3.0
Return to top
Show: