SPListItem.ResetRoleInheritance Method

Removes the local role assignments and reverts to role assignments from the parent object.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableExceptionConstraintAttribute(FixedId := "2", Condition := "Lack of permissions to perform the operation.",  _
    ErrorType := GetType(UnauthorizedAccessException))> _
<ClientCallableAttribute> _
Public Overrides Sub ResetRoleInheritance
'Usage
Dim instance As SPListItem

instance.ResetRoleInheritance()
[ClientCallableExceptionConstraintAttribute(FixedId = "2", Condition = "Lack of permissions to perform the operation.", 
    ErrorType = typeof(UnauthorizedAccessException))]
[ClientCallableAttribute]
public override void ResetRoleInheritance()

Implements

ISecurableObject.ResetRoleInheritance()

Remarks

This method deletes the local role assignment of the list item and inherits role assignments from the parent object.

This method calls the ResetRoleInheritance() method to reset the role assignments.

See Also

Reference

SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace