ActivityValidationServices.Validate Method
.NET Framework 4
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.
| Name | Description | |
|---|---|---|
|
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. |
|
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. |
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.