IListItemByKeyService.UpdateModerationStatus Method
Modifies the content approval status of the specified list item.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<CorrelationInitializerAttribute> _
Sub UpdateModerationStatus ( _
id As Guid, _
listId As Guid, _
itemKey As SPItemKey, _
newModerationStatus As SPModerationStatusType, _
comments As String _
)
'Usage
Dim instance As IListItemByKeyService
Dim id As Guid
Dim listId As Guid
Dim itemKey As SPItemKey
Dim newModerationStatus As SPModerationStatusType
Dim comments As String
instance.UpdateModerationStatus(id, listId, _
itemKey, newModerationStatus, comments)
[CorrelationInitializerAttribute]
void UpdateModerationStatus(
Guid id,
Guid listId,
SPItemKey itemKey,
SPModerationStatusType newModerationStatus,
string comments
)
Parameters
id
Type: System.GuidA GUID that represents the identifier of a list item.
listId
Type: System.GuidA GUID that represents the identifier of the list in which the item resides.
itemKey
Type: Microsoft.SharePoint.Workflow.SPItemKeyThe SPItemKey containing the identifier of the item in the list.
newModerationStatus
Type: Microsoft.SharePoint.SPModerationStatusTypeThe moderation status value to set for the specified list item.
comments
Type: System.StringComment text for the updated moderation status.