Sharepoint客户端对象模型。如何获取当前列表视图?

时间:2011-06-30 11:59:31

标签: sharepoint-2010 client sharepoint-api sharepoint-clientobject

Sharepoint列表包含6个视图。

我正在通过列表视图查询过滤项目的sharepoint页面。

如何使用客户端对象模型获取当前视图或查看标题?

1 个答案:

答案 0 :(得分:2)

您可以这样做:

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*”)

如本例所述:http://www.learningsharepoint.com/2010/09/05/get-list-views-in-sharepoint-2010-client-object-model-programmatically/