Export (0) Print
Expand All

RuleExpressionCondition.Validate Method

Verifies that the expression is configured correctly and has no errors.

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

public override bool Validate(
	RuleValidation validation
)

Parameters

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

The RuleValidation to manage the validation process.

Return Value

Type: System.Boolean
true if the expression has no errors; otherwise, false.

ExceptionCondition
ArgumentNullException

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

If the RuleExpressionCondition contains errors (the Validate method returns false), then RuleValidation.Errors will contain the list of errors encountered.

.NET Framework

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