共用方式為


SPSecurableObject.ResetRoleInheritance method

在衍生類別中實作時,移除本機角色指派,如此角色指派] 中所有的子系物件,都會重新從父系物件繼承。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Overridable Sub ResetRoleInheritance
'用途
Dim instance As SPSecurableObject

instance.ResetRoleInheritance()
public virtual void ResetRoleInheritance()

Implements

ISecurableObject.ResetRoleInheritance()

備註

執行這個方法的物件的所有子系物件現在還會從這個物件的父代,不只是直接子系物件繼承。

我們建議您仔細測試,查看它有子系物件的影響會使用這個方法的程式碼。

如果HasUniqueRoleAssignments屬性是false,這個方法就沒有作用。

如需有關權限繼承的詳細資訊,請參閱SharePoint 伺服器 2013年的細微的權限參考

請參閱

參照

SPSecurableObject class

SPSecurableObject members

Microsoft.SharePoint namespace

BreakRoleInheritance(Boolean)