Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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,

etc.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

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.