SPRoleAssignmentCollection.RemoveFromCurrentScopeOnly 方法

Removes the specified user or group from the current security scope.

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

语法

声明
Public Sub RemoveFromCurrentScopeOnly ( _
    member As SPPrincipal _
)
用法
Dim instance As SPRoleAssignmentCollection
Dim member As SPPrincipal

instance.RemoveFromCurrentScopeOnly(member)
public void RemoveFromCurrentScopeOnly(
    SPPrincipal member
)

参数

异常

异常 条件
InvalidOperationException

The HasUniqueRoleAssignments property of the ParentSecurableObject property is false.

备注

This method does not remove the member from all subscopes. It should only be used when the specified member already has permission to the current security scope through membership in some External Group or SharePoint Group. You can call this method to clean up redundant role assignments for the specified member when the member already has permission through membership in some External Group or SharePoint Group.

另请参阅

引用

SPRoleAssignmentCollection 类

SPRoleAssignmentCollection 成员

Microsoft.SharePoint 命名空间