你如何阅读SharePoint列表编程方式?方式、列表、SharePoint

由网友(跨年後i)分享简介:我目前使用的LINQ到SharePoint 从多个SharePoint列表中检索数据。I currently use the Linq to SharePoint to retrieve data from several SharePoint lists.这是编码从ASP.NET和WinForms我的方式来获取...

我目前使用的LINQ到SharePoint 从多个SharePoint列表中检索数据。

I currently use the Linq to SharePoint to retrieve data from several SharePoint lists.

这是编码从ASP.NET和WinForms我的方式来获取这些数据,我现在的preferred方法。

This is my current preferred method of coding my way from ASP.NET and WinForms to retrieve this data.

我的这个项目唯一的问题:

My only issue with this project:

我必须手动生成SPML文件,并且将其添加到开发环境,在项目编译它,才把我可以用它连接到列表中。

I have to manually generate the SPML file and add this to the development environment, compile it in the project, and only then I am able to use it to connect to the List.

这是伟大的作为需要连接到同一个列表始终的项目。

This is great for projects that require connecting to the one and the same list always.

但我有用户创建新的工作区(点),每个自己的列表,从中我想自动地检索数据(与LINQ到SharePoint的做法,但不是静态)。

But I am having users creating new workspaces (sites) with each its own List from which I want to retrieve data automagically (same as linq to sharepoint does, but not statically).

您可以推荐访问来自多个SharePoint列表和站点的数据在C#的WinForms和/或ASP.NET之外的实际SharePoint环境,我可以在运行时指定的一个新的源站点和列表的preferred方式?

Can you recommend your preferred way of accessing data from several SharePoint Lists and sites in C# WinForms and/or ASP.NET outside an actual SharePoint environment where I can specify the a new source site and list at run time?

推荐答案

您有几种选择这两者都将需要你进一步的研究,他们分别是:

You have several options both of which are going to require further research on your part they are:

使用SharePoint对象模型(Microsoft.SharePoint.dll的),您必须是SharePoint场中的一台PC上。 使用可在SITEURL / _vti_bin中找到的SharePoint Web服务/你可能要开始与Lists.asmx和工作从那里。

您将需要一些进一步的研究,我已经说过,但要记住GIYF。

You are going to need some further research as I have said, but remember GIYF.

阅读全文

相关推荐

最新文章