Interface IBasePermissions
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Defines the granted permission mask
public interface IBasePermissions : IDataModel<IBasePermissions>, IDataModelParent, IDataModelWithContext, ISupportModules<IBasePermissions>
- Inherited Members
- Extension Methods
Properties
All
A special property used to add an asterisk to a $select statement
object All { get; }
Property Value
High
Maximum granted permission mask
long High { get; set; }
Property Value
Low
Minimal granted permission mask
long Low { get; set; }
Property Value
Methods
Clear(PermissionKind)
Clears the specified permission for the current instance.
void Clear(PermissionKind permissionKind)
Parameters
permissionKindPermissionKind
ClearAll()
Clears all permissions for the current instance.
void ClearAll()
Has(PermissionKind)
Is this requested PermissionKind include?
bool Has(PermissionKind perm)
Parameters
permPermissionKindPermissionKind permisson
Returns
- bool
True if included, false otherwise
HasPermissions(uint, uint)
Are the requested permission masks included?
bool HasPermissions(uint high, uint low)
Parameters
Returns
- bool
True if included, false otherwise
Set(PermissionKind)
Sets the specified permission for the current instance.
void Set(PermissionKind permissionKind)
Parameters
permissionKindPermissionKind