共用方式為


SecurableObject.ResetRoleInheritance 方法

實作時衍生類別中,移除本機的角色指派讓角色指派],所有的子系物件,如重新繼承上層物件。

命名空間:  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]

沒有未認可的變更網站。錯誤碼:-1。

備註

執行此方法時的物件的所有子系物件現在也會從物件的父,而不只是直接子項繼承。

我們建議您仔細測試的程式碼,使用這個方法,請參閱有系物件的效果。

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

如需有關權限繼承的詳細資訊,請參閱SharePoint Server 2013 微調權限參考

請參閱

參照

SecurableObject 類別

SecurableObject 成員

Microsoft.SharePoint.Client 命名空間