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.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityIs there a way to determine the check-in/publish status of a Publishing Page programmatically?
For example to determine
etc.
Check the Level property of the SPFile object. It's a SPFileLevel enumeration with these possible values:Published, Draft, Checkout