AsyncCodeActivity.CacheMetadata Method

Definition

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

Overloads

CacheMetadata(ActivityMetadata)

Not implemented. Use CacheMetadata(CodeActivityMetadata) instead.

CacheMetadata(CodeActivityMetadata)

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

Remarks

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.

CacheMetadata(ActivityMetadata)

Not implemented. Use CacheMetadata(CodeActivityMetadata) instead.

C#
protected override sealed void CacheMetadata (System.Activities.ActivityMetadata metadata);

Parameters

metadata
ActivityMetadata

Not implemented.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

CacheMetadata(CodeActivityMetadata)

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

C#
protected virtual void CacheMetadata (System.Activities.CodeActivityMetadata metadata);

Parameters

metadata
CodeActivityMetadata

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

Remarks

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1