如何从ModelItem获取XElement [英] How to get an XElement from a ModelItem
问题描述
大家好,
我一直在尝试添加一个活动,该活动还会添加所有必需的变量,然后一次性将它们绑定到相应的参数.我在这里尝试过尝试,但是显然我想做的事是不可能的.
http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/d3f1fdcc-4de5 -4760-9ca9-9deee377c1a2
由于我已经成功实现了目标,现在只需要将[variableName]放入与为其创建的变量相对应的参数文本中即可转到WF4的顶部,然后使用Linq到Xml并直接绑定值.如果有人知道我如何在不依靠蛮力xml操纵的情况下实现我以前的目标,请给我启发.无论如何,除非论坛上有一些超级天才的启示,我想知道如何从ModelItem或ModelService中获取xml字符串或XElement.在此先感谢大家.
Bob
Hello Everyone,
I have been trying to add an activity that also adds all the necessary variables and then binds them to the corresponding arguments all in one go. I have tried an attempt here but apparently what I want to do is not possible.
http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/d3f1fdcc-4de5-4760-9ca9-9deee377c1a2
Since I have succeeded most of the way to my goal and now only need to put [variableName] in the argument text that corresponds to the variable created for it I have decided to go over the top of WF4 and use Linq to Xml and bind the values directly. If anyone knows how I can achieve my previous goal without resorting to brute force xml manipulation please, please, please enlighten me. Anyhow, barring a revelation from some super genius here on the forums, I was wondering how I can get an xml string or XElement from a ModelItem, or the ModelService. Thanks in advance everyone.
Bob
推荐答案
我已经回复了
I've replied to the other thread, does this help? (I also actually don't see how the XML can do this - it is also limited to doing what you can actually do to the wrapped object.)
这篇关于如何从ModelItem获取XElement的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!