GetCollection Method
The GetCollection method of the SPRoleCollection class returns the site groups specified by an array of names from the collection.
Parameters
names A string array that contains the names.
Return Value
A Microsoft.SharePoint.SPRoleCollection object that represents the site groups.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security