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

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