RuleCondition.Validate Method (RuleValidation)

 
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.

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
)

Parameters

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
Available since 3.0
Return to top
Show: