Compartilhar via


SPListItem.DoesUserHavePermissions method (SPUser, SPBasePermissions)

Indica se o usuário especificado tem as permissões especificadas em um item.

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

Syntax

'Declaração
Public Function DoesUserHavePermissions ( _
    user As SPUser, _
    permissionMask As SPBasePermissions _
) As Boolean
'Uso
Dim instance As SPListItem
Dim user As SPUser
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(user, _
    permissionMask)
public bool DoesUserHavePermissions(
    SPUser user,
    SPBasePermissions permissionMask
)

Parâmetros

Valor retornado

Type: System.Boolean
true se o usuário tem as permissões; Caso contrário, false.

Ver também

Referência

SPListItem class

SPListItem members

DoesUserHavePermissions overload

Microsoft.SharePoint namespace