Compartilhar via


PermissionMask Property

The PermissionMask property of the SPRole class gets or sets the permission mask for the site group.

Property Value

A Microsoft.SharePoint.SPRights value that specifies rights for the permission mask.

Remarks

To define a permission mask for a user or a site group 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 specified site group.

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