Partilhar via


UserCollection.Remove Method

Removes the specified user from the collection.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

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

instance.Remove(user)
[RemoteAttribute]
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