![](/img/trans.png)
[英]Search for a Document by its Name using SharePoint Lists.asmx GetListItems
[英]Delete Document from SharePoint Document list, using Lists.asmx, just by ID
我正在寻找一种解决方案,只传递一个项目 ID 来删除文档,而不传递 FileRef 参数。
将不胜感激任何帮助?
谢谢
UpdateListItems 会做你想做的事:
http://msdn.microsoft.com/en-us/library/lists.lists.updatelistitems(v=office.12).aspx
对于 xml 块,您将需要这样的东西来删除项目 id=1234:
<Batch OnError="Continue" ListVersion="1" >
<Method ID="1" Cmd="Delete">
<Field Name="ID">1234<Field>
</Method>
</Batch>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.