连接到 C# WPF 中的 SharePoint 2003

本文关键字:SharePoint 2003 中的 WPF 连接 | 更新日期: 2023-09-27 18:30:18

我正在创建一个 WPF 应用程序,该应用程序应列出 SharePoint 2003 服务器中的假日详细信息。使用什么库是正确的?我是否被降级为 COM 对象,或者是否存在与 SP 2003 兼容的 .NET 库?

连接到 C# WPF 中的 SharePoint 2003

有两种方法:

a. 使用 SharePoint Web 服务

Suppose your sharepoint server URL is as follows
https://MyDomain/MySite/default.aspx
Then replace default.aspx with /_vti_bin/lists.asmx to get list of web services expose by sharepoint.
https://MyDomain/MySite/_vti_bin/lists.asmx
This will provide you with list of all operations exposed by service.
You can use GetList to get calendar list and check if you get desired result.

b. Uisng Sharepoint 对象模型和 Microsoft.Sharepoint.dll(WPF 应用程序可以在安装 SharePoint 的同一服务器上运行)