Share via


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)

Syntax

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

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

Parameters

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

Remarks

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

Reference

SPGroupCollection class

SPGroupCollection members

Microsoft.SharePoint namespace