CacheMetadata Method (CodeActivityMetadata)
Collapse the table of content
Expand the table of content

AsyncCodeActivity.CacheMetadata Method (CodeActivityMetadata)

.NET Framework 4.6 and 4.5

Serves as a virtual method and converts information obtained by cache reflection into arguments for an asynchronous activity.

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

protected virtual void CacheMetadata(
	CodeActivityMetadata metadata


Type: System.Activities.CodeActivityMetadata

CodeActivityMetadata object that contains data for a set of asynchronous activity arguments.

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.

.NET Framework
Available since 4.0
Return to top
© 2015 Microsoft