共用方式為


SPList.ResetRoleInheritance method

重設為清單和其所有子代物件的角色指派這些清單的父物件。

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

Syntax

'宣告
Public Overrides Sub ResetRoleInheritance
'用途
Dim instance As SPList

instance.ResetRoleInheritance()
public override void ResetRoleInheritance()

Implements

ISecurableObject.ResetRoleInheritance()

Exceptions

Exception Condition
SPException

清單包含未認可的變更。

備註

在其執行此方法之清單的所有子系物件也現在會繼承這份清單父項目,而不只是立即的子物件。

我們建議您小心測試程式碼,使用此方法,請參閱 < 已定義的子系物件的效果。

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

如需權限繼承的詳細資訊,請參閱< Fine-grained permission reference for SharePoint Server 2013

呼叫Update()認可至清單的任何變更之前呼叫此方法。

請參閱

參照

SPList class

SPList members

Microsoft.SharePoint namespace

BreakRoleInheritance(Boolean, Boolean)