how to check-out document in document library programmatically in sharepoint

眉间皱痕 提交于 2019-12-10 18:42:32

问题


how to set a document in check-in/out mode programmatically by using webservices or objetmodel in sharepoint


回答1:


You need SPListItem.File.CheckOut / SPListItem.File.CheckIn from the object model. I don't know how to do this using the web service though.




回答2:


You need the CheckInFile and CheckOutFile web methods of the Lists webservice. The calls are pretty straight forward. Hope this helps.



来源:https://stackoverflow.com/questions/2431397/how-to-check-out-document-in-document-library-programmatically-in-sharepoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!