SPPrincipal.Roles property

NOTE: This API is now obsolete.

Gets the collection of roles associated with the principal.

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


<ObsoleteAttribute("Use the SPRoleAssignment class instead")> _
Public ReadOnly Property Roles As SPRoleCollection
Dim instance As SPPrincipal
Dim value As SPRoleCollection

value = instance.Roles
[ObsoleteAttribute("Use the SPRoleAssignment class instead")]
public SPRoleCollection Roles { get; }

Property value

Type: Microsoft.SharePoint.SPRoleCollection
An SPRoleCollection object that represents the roles.

See also


SPPrincipal class

SPPrincipal members

Microsoft.SharePoint namespace