如何从 WSS 3.0 的文档库中删除文档?
我需要一种以编程方式从 Sharepoint 2007 文档库中删除文档的方法。我无权访问服务器来部署服务器端代码,因此需要通过 Web 服务或 纯 http。我可以找到很多从列表项中删除附件的示例,但没有找到从文档库中删除附件的示例。
I need a way to programmaticaly delete documents from Sharepoint 2007 document library. I don't have access to the server to deploy server-side code, so it needs to be via web service or pure http. I can find plenty of examples for removing attachments from list items, but nothing for removing from document libraries.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从库中删除文档时,实际上是从列表中删除项目,因为这只是列表项目的一种特殊情况。你可以用谷歌搜索一下。
例子:
http://social. msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/c19cf6d0-17ca-40d3-9c53-16ebea5727b6
When removing documents from libraries it actually comes to removing items from a list, since this is only a specific case of list items. You might google for that.
Example:
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/c19cf6d0-17ca-40d3-9c53-16ebea5727b6