This documentation is archived and is not being maintained.
System.Activities.Validation Namespace
Visual Studio 2010
The System.Activities.Validation namespace contains classes used for custom activity validation. Custom validation for activities is provided by the ActivityValidationServices class, and custom validation conditions can be created using Constraint and Constraint<T>.
| Class | Description | |
|---|---|---|
![]() | 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 a workflow element. |
![]() | Constraint<T> | Handles a constraint used for validating an element of type T. |
![]() | GetChildSubtree | Retrieves workflow child elements from an instance of an activity. |
![]() | GetParentChain | Retrieves the collection of all workflow elements 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 | Containts 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. |
Show:
