0

Sharepoint 列表包含 6 个视图。

我正在共享点页面上,其中项目由列表视图查询过滤。

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

4

1 回答 1

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/

于 2011-07-03T05:22:45.170 回答