Share via


SPModerationInformation Class

The SPModerationInformation class provides information about the content approval status for an item in a list or a document library.

System.Object

   Microsoft.SharePoint.SPModerationInformation

Public Properties

The following table shows the public properties of the SPModerationInformation class, the data type of each property, and a brief description of each.

Name Data type Description
Comment String Gets or sets a comment about why the item was approved or rejected.
Status Microsoft.SharePoint.SPModerationStatusType Gets or sets a value that specifies the content approval status for an item.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.

Example

The following code example iterates through all the document libraries with content approval enabled on every site in the current site collection, and displays the URLs of all pending documents.

Requirements

Namespace: Microsoft.SharePoint

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Security: Code Access Security