SPSite.GetEffectiveRightsForAcl 方法 (SPReusableAcl, SPWeb)

Returns the actual permissions that the current user has for the specified access control list (ACL).

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function GetEffectiveRightsForAcl ( _
    acl As SPReusableAcl, _
    web As SPWeb _
) As SPBasePermissions
用法
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
)

参数

  • web
    类型: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.

返回值

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

备注

The GetEffectiveRightsForAcl method returns more information than the DoesUserHavePermissions method.

另请参阅

引用

SPSite 类

SPSite 成员

GetEffectiveRightsForAcl 重载

Microsoft.SharePoint 命名空间