本文介绍了如何使用 SiteData WebService 的 GetChanges 方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能详细说明为 SiteData Web Service 的 GetChanges 方法提供的参数值?

Can anyone elaborate on the parameter values to be supplied for GetChanges method of SiteData Web Service?

基本上我无法理解我们应该为 startChangeID 和 EndChangeID 提供什么值,我们可以从哪里获得这些值?

Basically I am not able to understand what value should we supply for startChangeID and EndChangeID and from where can we get these values?

对此的任何帮助将不胜感激.

Any help on this would be greatly appreciated.

谢谢.

推荐答案

尝试先用

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

其中 lastChangeID 是一个空字符串.这应该返回像

Where lastChangeID is an empty string. This should give back results like

<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.我的结果看起来像

Where 146b129e-4f56-4701-ada2-b370744f2ca3 is the guid of my ContentDbThe ChangeId mentioned here can be used in place of the lastChangeId and currentChangeId.My results appeared like

<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的过程完全一样

The process is exactly the same when using SiteDataService.ObjectType.Site

这篇关于如何使用 SiteData WebService 的 GetChanges 方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 02:43