Export (0) Print
Expand All

RuleExpressionWalker.Validate Method

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.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft