Share via


SPGroupCollection.GetCollection method (Int32[])

Returns a collection of groups from the collection based on the group IDs.

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

Syntax

'Declaration
Public Function GetCollection ( _
    groupIds As Integer() _
) As SPGroupCollection
'Usage
Dim instance As SPGroupCollection
Dim groupIds As Integer()
Dim returnValue As SPGroupCollection

returnValue = instance.GetCollection(groupIds)
public SPGroupCollection GetCollection(
    int[] groupIds
)

Parameters

  • groupIds
    Type: []

    An array of 32-bit integers that specify the groups to return.

Return value

Type: Microsoft.SharePoint.SPGroupCollection
An SPGroupCollection object that represents the groups.

See also

Reference

SPGroupCollection class

SPGroupCollection members

GetCollection overload

Microsoft.SharePoint namespace