Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试验证文档中是否存在参数,以及(如果存在)它是空的还是填充的。
问题是代码总是返回参数如果存在则填充。即使它存在但为空。所以第 30 到 33 行并没有真正起作用。我已经尝试了很多事情,但我不知道我做错了什么。
有谁知道错误是什么?
谢谢!
...我必须在此处的评论中添加我正在谈论的代码,因为我无法在其中添加图片...
参数 IsExtendedWarranty 的屏幕截图:
您正在调用Element GetParameters方法。
Element
GetParameters
它返回一个对象列表。Parameter
Parameter
要检查参数的值,您需要再添加两个步骤:
AsString