简体   繁体   English

Workflow Foundation 4中的动态数据类型

[英]Dynamic data type in Workflow Foundation 4

Can I use dynamic data type in WF 4.0? 我可以在WF 4.0中使用动态数据类型吗? And if this is possible then how can I do it? 如果这是可能的,那我该怎么办呢?

When you are creating activities or workflow extensions in code you can use dynamic data types just like in any other place in C#. 在代码中创建活动或工作流扩展时,您可以像使用C#中的任何其他位置一样使用动态数据类型。 When using VB expressions inside of a XAML workflow you can't. 在XAML工作流程中使用VB表达式时,您不能。 Even though VB has plenty of dynamic capabilities by setting option strict off there is no way to do that in a workflow and all expressions are compiled using set strict on and set explicit on. 尽管VB通过设置选项严格关闭而具有大量动态功能,但在工作流中无法执行此操作,并且所有表达式都使用set strict on和set explicit进行编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM