SPSite.GetEffectiveRightsForAcl method (SPReusableAcl, SPWeb)

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, _
    web As SPWeb _
) As SPBasePermissions
'Usage
Dim instance As SPSite
Dim acl As SPReusableAcl
Dim web As SPWeb
Dim returnValue As SPBasePermissions

returnValue = instance.GetEffectiveRightsForAcl(acl, _
    web)
public SPBasePermissions GetEffectiveRightsForAcl(
    SPReusableAcl acl,
    SPWeb web
)

Parameters

  • web
    Type: Microsoft.SharePoint.SPWeb

    An SPWeb object that represents a Web site. The Web site that you specify serves as a helper object that is used to calculate permission on the specified ACL. Specifying a Web site improves performance by eliminating the need to recreate the root Web site object.

Return value

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

Remarks

The GetEffectiveRightsForAcl method returns more information than the DoesUserHavePermissions method.

See also

Reference

SPSite class

SPSite members

GetEffectiveRightsForAcl overload

Microsoft.SharePoint namespace