SPRoleAssignmentCollection.Remove 方法 (SPPrincipal)

Removes the specified user or group from the role assignment collection.

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

语法

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

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

参数

异常

异常 条件
InvalidOperationException

The HasUniqueRoleAssignments property of the ParentSecurableObject property is false.

备注

This method removes the user or group specified by the member parameter from the role assignment collection.

另请参阅

引用

SPRoleAssignmentCollection 类

SPRoleAssignmentCollection 成员

Remove 重载

Microsoft.SharePoint 命名空间