从Delphi访问SharePoint对象 [英] Access SharePoint objects from Delphi

查看:35
本文介绍了从Delphi访问SharePoint对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要从Delphi中读写SharePoint中的对象,例如SharePoint中的约会(事件),什么是最好/最简单的方法?任何建议表示赞赏!谢谢.

We need to read and write the objects in SharePoint, such as the appointments (events) in SharePoint, from Delp what's the best/easiest way to do it? Any advises are appreciated! Thank you.

推荐答案

如果您能够在Delphi中使用.NET引用并且可以在SharePoint服务器上进行开发,则可以使用

If you are able to use .NET references in Delphi and can develop on a SharePoint server then use the SharePoint Object Model. This is the most powerful way of working with SharePoint. Add a reference to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll. The object model has its pain points to be aware of however and can have a bit of a steep learning curve in some areas. Take note of the need to dispose of partially unmanaged objects such as SPSite and SPWeb if you take this route.

或者使用 SharePoint Web服务.这些语法非常简单,只要正确使用它们的语法,它们就可以很好地工作.如果您的代码无法部署到SharePoint服务器,那么它们是您唯一的选择.缺点是,与对象模型相比,它们的功能大大减少了.当然,您迟早会遇到这种情况,这就是为什么我建议尽可能从对象模型入手的原因.

Alternatively use the SharePoint web services. These are quite simple and work well once you get their syntax correct. If your code cannot be deployed to the SharePoint server then they are your only option. The downside is that they are significantly reduced in functionality compared to the object model. You will certainly run up against this sooner or later which is why I recommend starting with the object model if possible.

这篇关于从Delphi访问SharePoint对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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