湖边的白杨树

探索是一种乐趣

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Caught: System.InvalidOperationException: The argument of type 'XXX' cannot be used. Make sure that it is declared on an activity.
at System.Activities.Argument.ThrowIfNotInTree()
at System.Activities.OutArgument`1.Set(ActivityContext context, T value)

 

Reasoon: Check the parameters here... must be something mismatched or wrong. 

metadata.AddArgument(new RuntimeArgument("AAAA", typeof(BBB), CCC.Out));

posted on 2014-06-20 18:37  fdyang  阅读(251)  评论(0编辑  收藏  举报