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

编程入门 行业动态 更新时间:2024-10-09 15:16:31
本文介绍了如何以编程方式阅读 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.

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

My only issue with this project:

我必须手动生成SPML文件并将其添加到开发环境中,在项目中进行编译,然后才能使用它连接到List.

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 to 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 列表和站点访问数据的首选方式,我可以在运行时指定新的源站点和列表?

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 网络服务,您可能希望从 Lists.asmx 开始并从那里开始工作.
  • 正如我所说,您将需要进一步研究,但请记住 GIYF.

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

    更多推荐

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

    本文发布于:2023-11-05 02:58:08,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1559721.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:方式   列表   SharePoint

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!