SPGroupCollection.GetByID method

Returns a group from the collection based on the member ID of the group.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Function GetByID ( _
    id As Integer _
) As SPGroup
Dim instance As SPGroupCollection
Dim id As Integer
Dim returnValue As SPGroup

returnValue = instance.GetByID(id)
public SPGroup GetByID(
    int id


  • id
    Type: System.Int32

    A 32-bit integer that specifies the member ID.

Return value

Type: Microsoft.SharePoint.SPGroup
An SPGroup object that represents the group.


The value of the id parameter corresponds to the unique member ID for the group, which is contained in the ID property of the SPMember class.

See also


SPGroupCollection class

SPGroupCollection members

Microsoft.SharePoint namespace