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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
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)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public SPBasePermissions GetEffectiveRightsForAcl(
SPReusableAcl acl,
SPWeb web
)
Parameters
acl
Type: Microsoft.SharePoint.SPReusableAclAn SPReusableAcl object that represents an ACL.
web
Type: Microsoft.SharePoint.SPWebAn 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.