Share via


SPRole.Type property

NOTE: This API is now obsolete.

Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Type property returned the type of the role is maintained for backward compatibility.)

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

Syntax

'Declaration
<ObsoleteAttribute("Use the SPRoleDefinition class instead")> _
Public ReadOnly Property Type As SPRoleType
    Get
'Usage
Dim instance As SPRole
Dim value As SPRoleType

value = instance.Type
[ObsoleteAttribute("Use the SPRoleDefinition class instead")]
public SPRoleType Type { get; }

Property value

Type: Microsoft.SharePoint.SPRoleType
An SPRoleType value that specifies the type of role.

See also

Reference

SPRole class

SPRole members

Microsoft.SharePoint namespace