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.GuidCorrelation ID of the update operation.
listId
Type: System.GuidThe ID of the list containing the item to update.
itemKey
Type: Microsoft.SharePoint.Workflow.SPItemKeyThe SPItemKey of the item whose permissions are being updated.
addedPermissions
Type: System.Collections.Specialized.HybridDictionaryA HybridDictionary containing the permissions to add to the specified list item.
- removedPermissions
Type: System.Collections.Specialized.HybridDictionary
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