SPListItem.ResetRoleInheritance method
Removes the local role assignments so that the list item, and all its descendant objects, re-inherit role assignments from the parent object.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Sub ResetRoleInheritance
'Usage
Dim instance As SPListItem
instance.ResetRoleInheritance()
public override void ResetRoleInheritance()
Implements
ISecurableObject.ResetRoleInheritance()
Remarks
All descendant objects of the list item on which this method is run will also now inherit from this list item's parent, not just the immediate child objects.
We recommend that you carefully test code that uses this method to see the effect it has on descendant objects.
This method does nothing if the HasUniqueRoleAssignments property is false.
For more information about permission inheritance, see Fine-grained permission reference for SharePoint Server 2013.
Call Update() to commit any changes to the list before calling this method.