SPWeb.ResetRoleInheritance 方法

Resets the local role assignments so the website, and all it's descendant objects, re-inherit role assignments from the parent website.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Overrides Sub ResetRoleInheritance
用法
Dim instance As SPWeb

instance.ResetRoleInheritance()
public override void ResetRoleInheritance()

实现

ISecurableObject.ResetRoleInheritance()

异常

异常 条件
SPException

The current website is the root website.

备注

All descendant objects of the website on which this method is run will also now inherit from this website's parent, not just the immediate children.

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.

另请参阅

引用

SPWeb 类

SPWeb 成员

Microsoft.SharePoint 命名空间