Is there a way to determine the check-in/publish status of a Publishing Page programmatically?

For example to determine

  • whether the page is checked out (and to whom),
  • whether the page has a published version,


1 Answer 1


Check the Level property of the SPFile object. It's a SPFileLevel enumeration with these possible values:Published, Draft, Checkout

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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