This topic has not yet been rated - Rate this topic

SPWeb.ResetRoleInheritance Method

Resets the local role assignments and inherits role assignments from the parent website.

Namespace:  Microsoft.SharePoint
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.

This method resets the role inheritance for the website so it inherits the role assignments from the parent website.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ