Share via


SPPolicyRole.GrantRightsMask property

Gets or sets the rights that are granted through the policy role.

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

Syntax

'Declaration
Public Property GrantRightsMask As SPBasePermissions
    Get
    Set
'Usage
Dim instance As SPPolicyRole
Dim value As SPBasePermissions

value = instance.GrantRightsMask

instance.GrantRightsMask = value
public SPBasePermissions GrantRightsMask { get; set; }

Property value

Type: Microsoft.SharePoint.SPBasePermissions
An SPBasePermissions value that represents the rights that are granted.

Remarks

The SharePoint Foundation object model allows you to grant and deny the same right in the same policy, which the user interface prevents. Denying a right overrides granting a right.

See also

Reference

SPPolicyRole class

SPPolicyRole members

Microsoft.SharePoint.Administration namespace