NativeActivity.CacheMetadata Method

.NET Framework 4.6 and 4.5

Creates and validates a description of the activity’s arguments, variables, child activities, and activity delegates.

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

  Name Description
Protected method CacheMetadata(ActivityMetadata) Not implemented. Use the CacheMetadata method instead. (Overrides Activity.CacheMetadata(ActivityMetadata).)
Protected method CacheMetadata(NativeActivityMetadata) Creates and validates a description of the activity’s arguments, variables, child activities, and activity delegates.
Top

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft