AsyncCodeActivity.CacheMetadata Method (CodeActivityMetadata)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

Parameters

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
Show: