Share via


SPSite.GetEffectiveRightsForAcl method (SPReusableAcl)

Returns the actual permissions that the current user has for the specified Access Control List (ACL).

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetEffectiveRightsForAcl ( _
    acl As SPReusableAcl _
) As SPBasePermissions
'Usage
Dim instance As SPSite
Dim acl As SPReusableAcl
Dim returnValue As SPBasePermissions

returnValue = instance.GetEffectiveRightsForAcl(acl)
public SPBasePermissions GetEffectiveRightsForAcl(
    SPReusableAcl acl
)

Parameters

Return value

Type: Microsoft.SharePoint.SPBasePermissions
An SPBasePermissions value that specifies base permissions for the site collection.

Remarks

The GetEffectiveRightsForAcl method returns more information than the DoesUserHavePermissions method.

See also

Reference

SPSite class

SPSite members

GetEffectiveRightsForAcl overload

Microsoft.SharePoint namespace