Partilhar via


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.String

    A string that contains the user name.

See Also

Reference

SPUserCollection Class

SPUserCollection Members

Remove Overload

Microsoft.SharePoint Namespace