2009-09-24 22 views
2

任何人都可以詳細說明爲SiteData Web Service的GetChanges方法提供的參數值嗎?如何使用SiteData WebService的GetChanges方法

基本上我無法理解我們應該爲startChangeID和EndChangeID提供什麼值,以及從哪裏可以獲取這些值?

任何幫助,將不勝感激。

謝謝。

回答

0

嘗試調用的getContent先用

string result = mysiteDataServiceInstance.GetContent(SiteDataService.ObjectType.ContentDatabase, 
myContentDbGuid.ToString(), "", "", false, false, ref lastChangeID); 

凡lastChangeID是一個空字符串。這應該給返回結果一樣

<ContentDatabase><Metadata ChangeId="1;0;146b129e-4f56-4701-ada2-b370744f2ca3;633896405160170000;168811216" ID="{146b129e-4f56-4701-ada2-b370744f2ca3}" /></ContentDatabase> 

凡146b129e-4f56-4701-ADA2-b370744f2ca3是我ContentDb 的GUID的ChangeId這裏所說的來代替lastChangeId和currentChangeId使用。 我的成績出現像

<SPContentDatabase Change="Unchanged" ItemCount="0"> 
<ContentDatabase><Metadata ChangeId="1;0;146b129e-4f56-4701-ada2-b370744f2ca3;633896953296070000;30349699" ID="{146b129e-4f56-4701-ada2-b370744f2ca3}" /></ContentDatabase></SPContentDatabase> 

使用SiteDataService.ObjectType.Site

時的過程是完全一樣的
相關問題