SPUtility.ConvertSPRightsToSPBasePermissions Method
Converts SPRights bit mask into SPBasePermissions bit mask.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ObsoleteType)> _
Public Shared Function ConvertSPRightsToSPBasePermissions ( _
perm As SPRights _
) As SPBasePermissions
'Usage
Dim perm As SPRights
Dim returnValue As SPBasePermissions
returnValue = SPUtility.ConvertSPRightsToSPBasePermissions(perm)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ObsoleteType)]
public static SPBasePermissions ConvertSPRightsToSPBasePermissions(
SPRights perm
)
Parameters
perm
Type: Microsoft.SharePoint.SPRightsThe SPRights bit mask to convert.
Return Value
Type: Microsoft.SharePoint.SPBasePermissions
An SPBasePermissions object.