每个项目都有一份<条码>改良条码>财产,以及一份<条码>经修改的>外地编码,分别有<条码>、<条码>、<条码>和<条码>英文<>。 您可以认为,谁最后修改了一份文件,何时修改。
The CAML for the View Fields
<ViewFields>
<FieldRef Name= Modified />
<FieldRef Name= Editor />
</ViewFields>
因此,将这种情况列入“GetListItem”文件页。
SrvRef.Lists listService = new Web_Reference_Folder.Lists();
listService.Credentials= System.Net.CredentialCache.DefaultCredentials;
XmlDocument xmlDoc = new System.Xml.XmlDocument();
XmlNode ndViewFields = xmlDoc.CreateNode(XmlNodeType.Element,"ViewFields","");
ndViewFields.InnerXml = "<FieldRef Name= Modified /><FieldRef Name= Editor />";
// maybe add a Where clause as well to retrieve specific items only
// XmlNode ndQuery = xmlDoc.CreateNode(XmlNodeType.Element,"Query","");
// ndQuery.InnerXml = "<Where><ADD PREDICATES HERE</Where>";
try
{
XmlNode ndListItems = listService.GetListItems("LISTNAME", null, null, ndViewFields, null, null, null);
// do something with the result
}
catch (System.Web.Services.Protocols.SoapException ex)
{
MessageBox.Show("Message:
" + ex.Message + "
Detail:
" + ex.Detail.InnerText + "
StackTrace:
" + ex.StackTrace);
}