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

Sharepoint 2010 Sharepoint客户端对象模型。如何获取当前列表视图?,sharepoint-2010,client,sharepoint-api,sharepoint-clientobject,Sharepoint 2010,Client,Sharepoint Api,Sharepoint Clientobject,Sharepoint列表包含6个视图 我停留在sharepoint页面上,在该页面中,项目通过列表视图查询进行过滤 如何使用客户端对象模型获取当前视图或视图标题?您可以执行以下操作: 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

Sharepoint列表包含6个视图

我停留在sharepoint页面上,在该页面中,项目通过列表视图查询进行过滤


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

您可以执行以下操作:

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*”)
如本例所述: