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)
Available in Sandboxed Solutions: No

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