ISecurableObject.DoesUserHavePermissions method
NOTE: This API is now obsolete.
Checks the permissions of the user for a given set of rights.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ObsoleteAttribute("Use the SPSecurableObject class instead")> _
Function DoesUserHavePermissions ( _
permissionMask As SPBasePermissions _
) As Boolean
'Usage
Dim instance As ISecurableObject
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean
returnValue = instance.DoesUserHavePermissions(permissionMask)
[ObsoleteAttribute("Use the SPSecurableObject class instead")]
bool DoesUserHavePermissions(
SPBasePermissions permissionMask
)
Parameters
permissionMask
Type: Microsoft.SharePoint.SPBasePermissionsAn SPBasePermissions value that specifies a set of rights to check.
Return value
Type: System.Boolean
true if the permissions of the user include the set of rights; otherwise, false.