SPSecurableObject.BreakRoleInheritance method (Boolean)
建立物件的唯一的角色指派,並選擇性地將角色指派複製從父代。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
Type: System.Booleantrue將角色指派從父物件複製到這個物件。若要將目前的使用者指派給安全性角色的false 。
Implements
ISecurableObject.BreakRoleInheritance(Boolean)
備註
這個方法會呼叫BreakRoleInheritance(Boolean, Boolean)方法copyRoleAssignments與false要停止繼承自其父物件的角色指派,並建立可保護物件的唯一的角色指派。