RuleCondition.Validate Method

When overridden in a derived class, verifies that the RuleCondition is configured correctly and has no errors.

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

public abstract bool Validate(
	RuleValidation validation


Type: System.Workflow.Activities.Rules.RuleValidation

The instance of RuleValidation that is used to manage the validation of rules and rule conditions.

Return Value

Type: System.Boolean
true to show that the RuleCondition has no errors; otherwise, false.

If the RuleCondition 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft