New answers tagged check-out
No, that is a library level setting. SPFile.RequiresCheckout is a read only property that tells you is 'check out required' setting set for the document library.
The problem may be that you use an elevated section, meaning the code runs under the identity of System. However, the page is being edited by (and checked-out to) the current user, the one who clicked the button. Thus, the error probably means the code cannot edit a file checked-out by someone else (and you never reach you page.CheckOut()call by the way). ...
I think you need to specify what type of CheckIn you're doing. Such as Item.File.CheckIn("Checked in programatically!", SPCheckinType.MajorCheckIn);
To check in all files checked out to you, or not yet checked in (happens when uploading folders from Windows Explorer): Document / Library (top ribbon) Create View / Standard View Name: CheckedOutToMe Audience: Create a Public View Filter: Checked Out To / is equal to / [Me] Tabular View: Allow indivdual item checkboxes Folders: Folders or Flat = ...
Top 50 recent answers are included