哪种访问sharepoint的方法更好?

Pre*_*eti 1 c# sharepoint sharepoint-2007

我正在研究sharepoint的小应用程序.

WE可以通过两种方式访问​​Sharepoint数据:

1.使用Microsoft.Sharepoint.dll在这种情况下,您需要在同一台机器(Windows服务器)上进行编码.

2.第二种方法是使用Sharepoint Web Services.这将允许开发人员在不同的机器上进行开发工作.

但我更喜欢哪种方式?

问候,Jene

Ste*_*ner 6

这一切都取决于你想做什么以及你想在哪里运行它.SharePoint对象模型(Microsoft.SharePoint.dll)比Web服务快得多,但正如您所说,它只能在SharePoint计算机上运行.因此,如果您在SharePoint计算机上,请务必使用对象模型,否则,请使用Web服务.