System.Activities.Validation Namespace

Provides classes related to custom activity validation.

Classes

ActivityValidationServices

Provides the functionality to validate a workflow.

AddValidationError

Add a specified activity validation error to the activity before execution.

AssertValidation

Adds a constraint violation to a list of constraint violations if the Assertion condition evaluates to false.

Constraint

Handles the validation constraint that is used for validating an activity.

Constraint<T>

Handles a constraint used for validating an element of type T.

GetChildSubtree

Retrieves workflow child activities from an instance of an activity.

GetParentChain

Retrieves the collection of all activities which belong to the parent axis of an activity.

GetWorkflowTree

Retrieves a workflow tree from an instance of an activity.

ValidationContext

Generates results based on the correct context for the current node in the workflow tree.

ValidationError

Represents an instance of a validation error that occurs before execution of the workflow.

ValidationResults

Contains all validation errors generated by Validate(Activity) while validating a workflow. These errors are contained in the Errors and Warnings collections.

ValidationSettings

Represents a collection of settings that customize the behavior that Validate(Activity) will exhibit. It also enables the activity user to apply policy constraints to a workflow.