Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ActivityValidationServices.Validate Method

.NET Framework (current version)
 

Verifies that a workflow activity is correctly configured according to the validation logic. This logic can be the CacheMetadata method of the activities to validate, or build and policy constraints.

Namespace:   System.Activities.Validation
Assembly:  System.Activities (in System.Activities.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticValidate(Activity)

Verifies that a workflow activity is correctly configured according to the validation logic. This logic can be the CacheMetadata method of the activities to validate, or build and policy constraints.

System_CAPS_pubmethodSystem_CAPS_staticValidate(Activity, ValidationSettings)

Verifies that a workflow activity is correctly configured according to the validation logic. This logic can be the cacheMetadata method of the activities to validate, or build and policy constraints.

Custom activity authors can provide validation logic in an activity's CacheMetadata override. Any exceptions that are thrown from CacheMetadata are not treated as validation errors. These exceptions will escape from the call to Validate and must be handled by the caller.

Return to top
Show:
© 2016 Microsoft