您如何以编程方式阅读SharePoint列表? [英] How do you Read SharePoint Lists Programmatically?

查看:99
本文介绍了您如何以编程方式阅读SharePoint列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用 Linq to SharePoint 从多个SharePoint列表中检索数据。

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

这是我目前首选的从ASP.NET和WinForms检索数据的方式。

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

此项目的唯一问题:

我必须手动生成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).

您能建议您从C#WinForms和/中的多个SharePoint列表和网站访问数据的首选方式吗?还是在实际的SharePoint环境之外的ASP.NET中,我可以在其中指定一个新的源站点并在运行时列出?

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:


  1. 使用SharePo int对象模型(Microsoft.Sharepoint.dll),则必须在SharePoint场中的PC上。

  2. 使用SharePoint Web服务,可以在SiteURL / _vti_bin /中找到该Web服务从Lists.asmx开始,然后从那里开始工作。

您将需要做一些进一步的研究,但请记住GIYF 。

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

这篇关于您如何以编程方式阅读SharePoint列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆