WF4.0 Foundation (26) interop invokes wf3.x activity

Source: Internet
Author: User

This example illustrates

Interop invokes the wf3.x activity

system.activ Ities. Statements.interop
file system.workflow.runtime.dll
inherit nativeactivity, ICustomTypeDescriptor

is a sealed class

Override the [CacheMetadata method] and [Cancel method] and [Execute method]

Override the type of the [Caninduceidle property]

[Activitymetaproperties] property is [Idictionary<string, Object>]

[ The type of the Activityproperties] property is [Idictionary<string, Object>] The type of the

[Activitytype] property is [type]

function description When the type of activity of the WF3.5 is specified, Two parameters are automatically generated in the designer for the binding of the WF3.5 activity, one for [property name] and the other for [property name out]

Instructions for use

The default WF4.0 item is [. NET Framework 4 Client profile], to use interop, change the project to [. NET Framework 4]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.