Share via


SPGroupCollection.GetCollection method (String[])

Returns a collection of groups from the collection based on an array of names.

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

Syntax

'Declaration
Public Function GetCollection ( _
    names As String() _
) As SPGroupCollection
'Usage
Dim instance As SPGroupCollection
Dim names As String()
Dim returnValue As SPGroupCollection

returnValue = instance.GetCollection(names)
public SPGroupCollection GetCollection(
    string[] names
)

Parameters

  • names
    Type: []

    A string array that contains the names.

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