Partager via


SPList.DoesUserHavePermissionsForUI - Méthode (SPBasePermissions, Boolean)

Checks the permissions for a given set of rights, as they should be displayed in the UI, and returns a Boolean. Optionally checks for permissions on a folder. This will only differ from DoesUserHavePermissions if ReadOnlyUI is set to true, and will always be as or more restrictive than DoesUserHavePermissions.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Function DoesUserHavePermissionsForUI ( _
    permissionMask As SPBasePermissions, _
    checkFolder As Boolean _
) As Boolean
'Utilisation
Dim instance As SPList
Dim permissionMask As SPBasePermissions
Dim checkFolder As Boolean
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissionsForUI(permissionMask, _
    checkFolder)
public bool DoesUserHavePermissionsForUI(
    SPBasePermissions permissionMask,
    bool checkFolder
)

Paramètres

  • checkFolder
    Type : System.Boolean

    true to check permissions against the current folder within the list; otherwise, false.

Valeur renvoyée

Type : System.Boolean
true if permissions succeeded; otherwise, false.

Voir aussi

Référence

SPList classe

SPList - Membres

DoesUserHavePermissionsForUI - Surcharge

Microsoft.SharePoint - Espace de noms