how to check-out document in document library prog

2019-07-06 17:35发布

问题:

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.