开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜