SPUserCollection.RemoveByID Method
Removes the user with the specified member ID 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 RemoveByID ( _
id As Integer _
)
'Usage
Dim instance As SPUserCollection
Dim id As Integer
instance.RemoveByID(id)
public void RemoveByID(
int id
)
Parameters
id
Type: System.Int32A 32-bit integer that specifies the member ID.
Remarks
The value of the id parameter corresponds to the unique member ID for the site group, which is contained in the ID property of the SPMember class.