本文介绍了使用 SharePoint 客户端对象模型检查列表列是否存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用 SharePoint 2010 中的客户端对象模型 (C#),如何确定给定列表中是否存在指定的列(字段)名称?
Using the Client Object Model (C#) in SharePoint 2010, how can I determine if a specified column (field) name exists in a given List?
谢谢,MagicAndi.
Thanks, MagicAndi.
推荐答案
刚刚在搜索相同的东西时发现了这个,但看起来 Sharepoint 2010 为此内置了一些东西,至少对于服务器模型:list.Fields.ContainsField("fieldName");
Just found this while searching for the same thing, but it looks like Sharepoint 2010 has something built in for this, at least for the Server model: list.Fields.ContainsField("fieldName");
虽然不确定它是否存在于客户端.认为这是存储这些信息的好地方.
Not sure if it exists for Client side though. Figured it would be a good place to store this information however.
这篇关于使用 SharePoint 客户端对象模型检查列表列是否存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!