GroupCollection.RemoveById method

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

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

See also

Reference

GroupCollection class

GroupCollection members

Microsoft.SharePoint.Client namespace