尋找一種方法來查找在Sharepoint中註冊的文檔。我可以通過以下代碼在文檔庫或列表中找到文檔。在Sharepoint中查找文檔
SPSite oSPSite = new SPSite(_serverUrl);
SPWeb oSPWeb = oSPSite.OpenWeb();
SPList oSPList;
SPListItemCollection oSPListItemCollection;
oSPList = oSPWeb.Lists["Listname"];
SPListItem listItem = null;
listItem = oSPList.GetItemByUniqueId(new Guid(spGuid));
但我需要遍歷所有槽名單,如果我不知道在哪個列表中選擇文檔被註冊或是否有更有效的方式。
你知道文檔的URL嗎? – Howard 2012-01-17 10:44:10