开发者

Sharepoint client object model. How to get current list view?

开发者 https://www.devze.com 2023-03-16 05:31 出处:网络
Sharepoint list contains 6 views. I am staing on sharepoint page where 开发者_运维百科items filtered by list view query.

Sharepoint list contains 6 views.

I am staing on sharepoint page where 开发者_运维百科items filtered by list view query.

how can i get current view or view title with client object model?


You can do something like this:

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

as described in this example: http://www.learningsharepoint.com/2010/09/05/get-list-views-in-sharepoint-2010-client-object-model-programmatically/

0

精彩评论

暂无评论...
验证码 换一张
取 消