SPSecurableObject.ResetRoleInheritance Method

Removes local role assignments and inherits 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 := "1", Condition := "There are uncommited changes for the Site object and this method is called.",  _
    ErrorType := GetType(InvalidOperationException))> _
<ClientCallableAttribute> _
Public Overridable Sub ResetRoleInheritance
'Usage
Dim instance As SPSecurableObject

instance.ResetRoleInheritance()
[ClientCallableExceptionConstraintAttribute(FixedId = "1", Condition = "There are uncommited changes for the Site object and this method is called.", 
    ErrorType = typeof(InvalidOperationException))]
[ClientCallableAttribute]
public virtual void ResetRoleInheritance()

Implements

ISecurableObject.ResetRoleInheritance()

Remarks

This method does nothing if the HasUniqueRoleAssignments property is false.

See Also

Reference

SPSecurableObject Class

SPSecurableObject Members

Microsoft.SharePoint Namespace

BreakRoleInheritance(Boolean)