如何使用linq按语言获取值? [英] How to use linq to get values by language?

查看:81
本文介绍了如何使用linq按语言获取值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hello,



   有人可以帮我吗?



   我无法找到一种方法来获取特定语言的linq值,例如:



var xElementWebSorted = 



                   来自xel in xElementWeb.Descendants()

                     其中
xElementWeb.Attribute(" Culture")==" en-US"


                   选择xel





亲切问候。



Claude

解决方案

嗨克劳德,


感谢在TechNet论坛上发帖。


此论坛面向用户讨论有关SharePoint的问题。由于该问题与LINQ和XML更相关,我想将其移至相应的 论坛。


我们建议适当发布的原因是您将获得最合格的受访者群体,而定期阅读论坛的其他合作伙伴可以
分享他们的知识或从与我们的互动中学习。


感谢您的理解。


谢谢,   


帕特里克


Hello,

   Can anybody help me on this?

   I cannot find a way to get values with linq for specific language, as for example something like:

var xElementWebSorted = 

                    from xel in xElementWeb.Descendants()
                    where xElementWeb.Attribute("Culture") == "en-US"
                    select xel

Kind regards.

Claude

解决方案

Hi Claude,

Thanks for posting in TechNet forum.

This forum is for users discussing issue about SharePoint. Since the issue is more related to the LINQ and XML, I would like to move it to the corresponding forum.

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

Thanks for your understanding.

Thanks,   

Patrick


这篇关于如何使用linq按语言获取值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆