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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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