Share via


SPUser.Groups property

Gets the collection of groups of which the user is a member.

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

Syntax

'Declaration
Public ReadOnly Property Groups As SPGroupCollection
    Get
'Usage
Dim instance As SPUser
Dim value As SPGroupCollection

value = instance.Groups
public SPGroupCollection Groups { get; }

Property value

Type: Microsoft.SharePoint.SPGroupCollection
An SPGroupCollection object that represents the groups.

See also

Reference

SPUser class

SPUser members

Microsoft.SharePoint namespace