Monday, September 21, 2009

An easy way to find out whether a page is approved or published through code in SharePoint 2007

Scenario:
An easy way to find out whether a page is approved or published through code in SharePoint 2007

Code:

if (page.ModerationInformation.Status == SPModerationStatusType.Approved)

No comments:

Post a Comment