SPSecurableObject.BreakRoleInheritance 方法 (Boolean)

Creates unique role assignments for the object and optionally copies role assignments from the parent.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Overridable Sub BreakRoleInheritance ( _
    copyRoleAssignments As Boolean _
)
用法
Dim instance As SPSecurableObject
Dim copyRoleAssignments As Boolean

instance.BreakRoleInheritance(copyRoleAssignments)
public virtual void BreakRoleInheritance(
    bool copyRoleAssignments
)

参数

  • copyRoleAssignments
    类型:System.Boolean

    true to copy role assignments from the parent object to this object; false to assign only the current user to security roles.

实现

ISecurableObject.BreakRoleInheritance(Boolean)

备注

This method calls the BreakRoleInheritance(Boolean, Boolean) method with copyRoleAssignments and false to stop inheriting role assignments from its parent object and to create unique role assignments for the securable object.

另请参阅

引用

SPSecurableObject 类

SPSecurableObject 成员

BreakRoleInheritance 重载

Microsoft.SharePoint 命名空间

ResetRoleInheritance()