Share via


IListItemByKeyService.UpdateListItemPermissions Method

Updates the collection of permissions of a specified list item.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<CorrelationInitializerAttribute> _
Sub UpdateListItemPermissions ( _
    id As Guid, _
    listId As Guid, _
    itemKey As SPItemKey, _
    addedPermissions As HybridDictionary, _
    removedPermissions As HybridDictionary _
)
'Usage
Dim instance As IListItemByKeyService
Dim id As Guid
Dim listId As Guid
Dim itemKey As SPItemKey
Dim addedPermissions As HybridDictionary
Dim removedPermissions As HybridDictionary

instance.UpdateListItemPermissions(id, _
    listId, itemKey, addedPermissions, _
    removedPermissions)
[CorrelationInitializerAttribute]
void UpdateListItemPermissions(
    Guid id,
    Guid listId,
    SPItemKey itemKey,
    HybridDictionary addedPermissions,
    HybridDictionary removedPermissions
)

Parameters

  • id
    Type: System.Guid

    Correlation ID of the update operation.

  • listId
    Type: System.Guid

    The ID of the list containing the item to update.

Remarks

The key for the addPermissions and removedPermissionsHybridDictionary objects should be set with the ID of the principal.

The value for the addPermissions and removedPermissionsHybridDictionary objects should be set with the ID of the SPRoleType or a an ArrayList containing ID or SPRoleType

See Also

Reference

IListItemByKeyService Interface

IListItemByKeyService Members

Microsoft.SharePoint.Workflow Namespace