Workflow Foundation 4 中的动态数据类型
我可以在 WF 4.0 中使用动态数据类型吗?如果这是可能的那么我该怎么做呢?
Can I use dynamic data type in WF 4.0? And if this is possible then how can I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您在代码中创建活动或工作流扩展时,您可以使用动态数据类型,就像在 C# 中的任何其他地方一样。当在 XAML 工作流程中使用 VB 表达式时,则不能。尽管 VB 通过设置选项 strict off 具有大量动态功能,但在工作流程中无法做到这一点,并且所有表达式都是使用 set strict on 和 set Explicit on 进行编译的。
When you are creating activities or workflow extensions in code you can use dynamic data types just like in any other place in C#. When using VB expressions inside of a XAML workflow you can't. 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.