Groups Property
The Groups property of the SPWeb class gets the collection of cross-site groups for the site.
Property Value
A Microsoft.SharePoint.SPGroupCollection object that represents the cross-site groups.
Example
The following code example uses the Groups property to return the collection of cross-site groups on a specified site in the current site collection.
This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security