AsyncCodeActivity<TResult>.CacheMetadata Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 reflection on a cache 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.
protected:
override void CacheMetadata(System::Activities::ActivityMetadata metadata);
protected override sealed void CacheMetadata (System.Activities.ActivityMetadata metadata);
override this.CacheMetadata : System.Activities.ActivityMetadata -> unit
Protected Overrides NotOverridable Sub CacheMetadata (metadata As ActivityMetadata)
Parameters
- metadata
- ActivityMetadata
Not implemented.
Applies to
CacheMetadata(CodeActivityMetadata)
Serves as a virtual method and converts information obtained by reflection on a cache into arguments for an asynchronous activity.
protected:
virtual void CacheMetadata(System::Activities::CodeActivityMetadata metadata);
protected virtual void CacheMetadata (System.Activities.CodeActivityMetadata metadata);
override this.CacheMetadata : System.Activities.CodeActivityMetadata -> unit
Protected Overridable Sub CacheMetadata (metadata As CodeActivityMetadata)
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.