English 中文(简体)
我如何在2010年共同点重新编制意见清单
原标题:How do I get a list of views back programatically in Sharepoint 2010

我发现这一理论,但是它位于Vb,而且没有太多的足迹,因此我不敢去做。

Here is a short example of how to get list views using Client object model in SharePoint 2010



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

Dim objViewFldColl As SP.ViewFieldCollection = objmyView.ViewFields

g_objCore.Security.ClientContext.Load(objViewFldColl)

g_objCore.Security.ClientContext.ExecuteQuery()

Now you can iterate through objViewFldColl to get the Fields in the View

我不知道如何获得这一客户目标模式。 我也不知道进口什么清单。 我选择了3个名称空间。

using Microsoft.Office.Server.ActivityFeed;
using Microsoft.SharePoint.Portal.Audience.AdminUI;
using System.Windows.Documents;

I am trying to make this in a visual web part code behind. I am using C# and I literally have 5minutes of share point experience(sort of have to skip the 101 of sharepoint and do this little part of some project that I am now on temporary).

最佳回答

你正在研究客户的OM(将从浏览器代码或客户应用程序中使用)。 关于网络后面的编码,你应当使用服务器OM:SPList。 意见——

缩略语 意见:

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签