Share via


PermissionMask Property

The PermissionMask property of the SPPermission class gets or sets the rights for the permission mask of the user, site group, or cross-site group.

Property Value

A Microsoft.SharePoint.SPRights value that specifies the rights.

Remarks

To define a permission mask that consists of multiple rights, use the pipe symbol ("|") in C# or Or in Visual Basic .NET to delimit the rights.

Example

The following code example modifies the permission mask for a site group, giving it the rights to manage lists and to manage the permissions for lists.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security