UserCollection.Remove method

Removes the specified user from the collection.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Sub Remove ( _
    user As User _
)
'Usage
Dim instance As UserCollection
Dim user As User

instance.Remove(user)
public void Remove(
    User user
)

Parameters

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

User cannot be found, or cannot modify the UserCollection. Error code: -2146232832.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

See also

Reference

UserCollection class

UserCollection members

Microsoft.SharePoint.Client namespace