是否可以遍历共享点列表的字段集合并仅检索我们的自定义字段而不是共享点内置字段。
using (SPSite site = new SPSite("http://localhost/"))
{
using (SPWeb web = site.OpenWeb())
{
SPList list = web.Lists["My List"];
foreach (SPField field in list.Fields)
{
//We also get sharepoint built-in column here. And we don't want that, just our
//custom created fields.
}
}
}
任何帮助,将不胜感激。
谢谢