Share via


RoleDefinition.BasePermissions property

Gets or sets a value that specifies the base permissions for the role definition.

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

Syntax

'Declaration
Public Property BasePermissions As BasePermissions
    Get
    Set
'Usage
Dim instance As RoleDefinition
Dim value As BasePermissions

value = instance.BasePermissions

instance.BasePermissions = value
public BasePermissions BasePermissions { get; set; }

Property value

Type: Microsoft.SharePoint.Client.BasePermissions
Returns a BasePermissions instance representing the base permissions for the role definition.

Exceptions

Exception Condition
[System.InvalidOperationException]

Site inherits permission levels from a parent site, and permission levels cannot be customized. Error code: -1.

Remarks

When assigning values to the property, use bitwise AND, OR, and XOR operators with values from the BasePermissions enumeration.

It must not be a null reference (Nothing in Visual Basic).

See also

Reference

RoleDefinition class

RoleDefinition members

Microsoft.SharePoint.Client namespace