[Sharepoint Web Part] 用 WinForm 開發 Sharepoint
只要安裝好Sharepoint 2007除了使用在Web上外,也可以在Winform上使用。
1.加入Microsoft.SharePoint.dll參考,路徑為C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll
2.匯入命名空間
using Microsoft.SharePoint;
3.快樂使用Sharepoint。
執行畫面,比對一下Web畫面與WinForm的結果。
本篇重點是命名空間參考的位置C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll
若有謬誤,煩請告知,新手發帖請多包涵
Microsoft MVP Award 2010~2017 C# 第四季
Microsoft MVP Award 2018~2025 .NET