一个简短的例子,在SharePoint 2010中通过客户端对象模型获取列表视图。

Dim objmyList As SP.List = g_objCore.Security.Web.Lists.GetByTitle(“**Your List Name*”)

Dim objmyView As SP.View = objmyList.Views.GetByTitle(“*Your View Name*”)

Dim objViewFldColl As SP.ViewFieldCollection = objmyView.ViewFields

g_objCore.Security.ClientContext.Load(objViewFldColl)

g_objCore.Security.ClientContext.ExecuteQuery()
现在你就可以遍历objViewFldColl来获取视图中的字段了。

 

参考资料

Get List Views in SharePoint 2010 client object model programmatically

相关文章:

  • 2022-01-02
  • 2021-11-20
  • 2021-06-02
  • 2021-06-29
  • 2022-01-30
  • 2021-08-22
  • 2022-12-23
  • 2021-07-27
猜你喜欢
  • 2021-10-09
  • 2022-02-04
  • 2021-05-30
  • 2022-12-23
  • 2021-07-28
  • 2021-05-18
  • 2022-02-01
相关资源
相似解决方案