SPWeb.ResetRoleInheritance Method
Resets the local role assignments and inherits role assignments from the parent website.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[ClientCallableAttribute] [ClientCallableExceptionConstraintAttribute(FixedId = "Microsoft.SharePoint.SPException$-2146232832", ErrorType = typeof(SPException), Condition = "This site is a root site.", ErrorCode = )] [ClientCallableExceptionConstraintAttribute(FixedId = "b", ErrorType = typeof(InvalidOperationException), Condition = "There are uncommitted changes on the site", ErrorCode = )] public override void ResetRoleInheritance()
Implements
ISecurableObject.ResetRoleInheritance()| Exception | Condition |
|---|---|
| SPException |
The current website is the root website. |