SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working through some code samples on MSDN that is suppose to return Checked Out files but my tests is showing a problem.

Here you can see that both "default" and "foo" in my Page library are checked out yet only "foo" is returned when I call IList files = library.CheckedOutFiles;

Is there something unique about "default" that makes it not return?

Thanks for reading.

enter image description here

share|improve this question
up vote 3 down vote accepted

The problem is that SPDocumentLibrary.CheckedOutFiles returns the *new*ly uploaded files that are checked out. (notice the new near the foo document).

From MSDN:

When someone creates a new file or adds a new file to a library that requires check-out...

So when using SPDocumentLibrary.CheckedOutFiles you will not have all checked out files.

You can have more information on this subject and on how to get all checked out files from here.

share|improve this answer
To take this one step further I believe its not just "new" documents. I believe it to be any documents that have no checked in version. – SpartanDonut Feb 8 '12 at 19:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.