使用SharePoint客户端对象模型检查是否存在列表列? [英] Check if a List Column Exists using SharePoint Client Object Model?

查看:80
本文介绍了使用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客户端对象模型检查是否存在列表列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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