Share via


SPRoleDefinition.Type Property

Gets the type of the role definition.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.MaxValue, Value := SPRoleType.Administrator)> _
<ClientCallableAttribute(Name := "RoleTypeKind")> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.MinValue, Value := SPRoleType.None)> _
Public ReadOnly Property Type As SPRoleType
    Get
'Usage
Dim instance As SPRoleDefinition
Dim value As SPRoleType

value = instance.Type
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.MaxValue, Value = SPRoleType.Administrator)]
[ClientCallableAttribute(Name = "RoleTypeKind")]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.MinValue, Value = SPRoleType.None)]
public SPRoleType Type { get; }

Property Value

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

See Also

Reference

SPRoleDefinition Class

SPRoleDefinition Members

Microsoft.SharePoint Namespace