Compartilhar via


SPSecurableObject.DoesUserHavePermissions method

Indica se o usuário atual tem um conjunto de permissões especificado.

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

Syntax

'Declaração
Public Overridable Function DoesUserHavePermissions ( _
    permissionMask As SPBasePermissions _
) As Boolean
'Uso
Dim instance As SPSecurableObject
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(permissionMask)
public virtual bool DoesUserHavePermissions(
    SPBasePermissions permissionMask
)

Parâmetros

Valor retornado

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

Implements

ISecurableObject.DoesUserHavePermissions(SPBasePermissions)

Ver também

Referência

SPSecurableObject class

SPSecurableObject members

Microsoft.SharePoint namespace

CheckPermissions(SPBasePermissions)