SecurableObject.ResetRoleInheritance 方法

When implemented in a derived class, removes local role assignments so that role assignments, for all descendant objects, are re-inherited from the parent object.

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

语法

声明
Public Overridable Sub ResetRoleInheritance
用法
Dim instance As SecurableObject

instance.ResetRoleInheritance()
public virtual void ResetRoleInheritance()

异常

异常 条件
[System.InvalidOperationException]

There are uncommitted changes for the site. Error code: -1.

备注

All descendant objects of the object on which this method is run will also now inherit from this object'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.

另请参阅

引用

SecurableObject 类

SecurableObject 成员

Microsoft.SharePoint.Client 命名空间