Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the specified user or group from the role assignment collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub Remove ( _
member As SPPrincipal _
)
'Usage
Dim instance As SPRoleAssignmentCollection
Dim member As SPPrincipal
instance.Remove(member)
public void Remove(
SPPrincipal member
)
Parameters
member
Type: Microsoft.SharePoint.SPPrincipalThe user or group to remove.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The HasUniqueRoleAssignments property of the ParentSecurableObject property is false. |
Remarks
This method removes the user or group specified by the member parameter from the role assignment collection.
See Also
Reference
SPRoleAssignmentCollection Class