Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the group with the specified member ID from the collection.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Sub RemoveById ( _
id As Integer _
)
'Usage
Dim instance As GroupCollection
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 of the group to be removed.
Exceptions
| Exception | Condition |
|---|---|
| SPException | The group collection is read-only. |
Remarks
The value of the id parameter corresponds to the unique member ID for the group, which equals the ID property of the SPMember class. Use the Remove method to remove a group at a specified index in the group collection.