Condividi tramite


SPList.ResetRoleInheritance Method

Resets the role assignments to those of the parent object.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableExceptionConstraintAttribute(FixedId := "a", Condition := "There are uncommitted changes on the List call Update() to commit the changes before calling this method.",  _
    ErrorType := GetType(SPException), ErrorCode := )> _
<ClientCallableExceptionConstraintAttribute(FixedId := "b", ErrorCode := , Condition := "User does not have permissions to reset role inheritance.",  _
    ErrorType := GetType(UnauthorizedAccessException))> _
<ClientCallableAttribute> _
Public Overrides Sub ResetRoleInheritance
'Usage
Dim instance As SPList

instance.ResetRoleInheritance()
[ClientCallableExceptionConstraintAttribute(FixedId = "a", Condition = "There are uncommitted changes on the List call Update() to commit the changes before calling this method.", 
    ErrorType = typeof(SPException), ErrorCode = )]
[ClientCallableExceptionConstraintAttribute(FixedId = "b", ErrorCode = , Condition = "User does not have permissions to reset role inheritance.", 
    ErrorType = typeof(UnauthorizedAccessException))]
[ClientCallableAttribute]
public override void ResetRoleInheritance()

Implements

ISecurableObject.ResetRoleInheritance()

Exceptions

Exception Condition
SPException

The list contains uncommitted changes.

Remarks

Call Update() to commit any changes to the list before calling this method.

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace

BreakRoleInheritance(Boolean, Boolean)