This topic has not yet been rated - Rate this topic

ActivityValidationServices.Validate Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Validate(Activity) Verifies that a workflow activity is correctly configured according to the validation logic. This logic can be the CacheMetadata(CodeActivityMetadata) method of the activities to validate, or build and policy constraints.
Public method Static member Validate(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.
Top

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.