次の方法で共有


SPAcl<T>.DoesUserHavePermissions method

Performs an access check to determine if the current user has the specified permissions.

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

Syntax

'Declaration
Public Function DoesUserHavePermissions ( _
    permissions As T _
) As Boolean
'Usage
Dim instance As SPAcl
Dim permissions As T
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(permissions)
public bool DoesUserHavePermissions(
    T permissions
)

Parameters

  • permissions
    Type: T

    An object that represents the permissions to check.

Return value

Type: System.Boolean
true if the user has the permissions; otherwise, false.

See also

Reference

SPAcl<T> class

SPAcl<T> members

Microsoft.SharePoint.Administration namespace