Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Server Technologies
SDK Documentation
SPWeb Class
SPWeb Methods
 BreakRoleInheritance Method
SPWeb.BreakRoleInheritance Method (Microsoft.SharePoint)
Breaks inheritance of role assignments from the parent Web site.

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

Visual Basic (Declaration)
Public Sub BreakRoleInheritance ( _
    CopyRoleAssignments As Boolean _
)
Visual Basic (Usage)
Dim instance As SPWeb
Dim CopyRoleAssignments As Boolean

instance.BreakRoleInheritance(CopyRoleAssignments)
C#
public void BreakRoleInheritance (
    bool CopyRoleAssignments
)

Parameters

CopyRoleAssignments

true to break role inheritance but to copy the role assignments; otherwise, false to make the current user a Web site administrator.

If the current Web site is the root Web site in the site collection, the BreakRoleInheritance method throws an exception.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker