Freigeben über


SPPrincipal.Roles-Eigenschaft

HINWEIS: Diese API ist veraltet.

Ruft die Auflistung der Rollen, die mit dem Prinzipal verknüpft ist.

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

Syntax

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

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

Eigenschaftswert

Typ: Microsoft.SharePoint.SPRoleCollection
Ein SPRoleCollection -Objekt, das die Rolle darstellt.

Siehe auch

Referenz

SPPrincipal Klasse

SPPrincipal-Member

Microsoft.SharePoint-Namespace