Share via


SPSite.DoesUserHavePermissions Method (SPReusableAcl, SPBasePermissions)

Returns a Boolean value indicates whether the user has permissions for the specified set of rights.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Function DoesUserHavePermissions ( _
    acl As SPReusableAcl, _
    permissionMask As SPBasePermissions _
) As Boolean
'Usage
Dim instance As SPSite
Dim acl As SPReusableAcl
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(acl, _
    permissionMask)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public bool DoesUserHavePermissions(
    SPReusableAcl acl,
    SPBasePermissions permissionMask
)

Parameters

Return Value

Type: System.Boolean
true if the user has permissions for the specified set of rights; otherwise, false.

See Also

Reference

SPSite Class

SPSite Members

DoesUserHavePermissions Overload

Microsoft.SharePoint Namespace