SPUserCollection.Remove Method (String)
Removes the user with the specified user name from the 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 ( _
loginName As String _
)
'Usage
Dim instance As SPUserCollection
Dim loginName As String
instance.Remove(loginName)
public void Remove(
string loginName
)
Parameters
loginName
Type: System.StringA string that contains the user name.