Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPList Class
SPList Methods
 DoesUserHavePermissions Method (SPB...
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
SPList.DoesUserHavePermissions Method (SPBasePermissions, Boolean) (Microsoft.SharePoint)
Checks the permissions of the list, and, optionally. checks the folder permissions.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Function DoesUserHavePermissions ( _
    permissionMask As SPBasePermissions, _
    checkFolder As Boolean _
) As Boolean
Visual Basic (Usage)
Dim instance As SPList
Dim permissionMask As SPBasePermissions
Dim checkFolder As Boolean
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(permissionMask, checkFolder)
C#
public bool DoesUserHavePermissions (
    SPBasePermissions permissionMask,
    bool checkFolder
)

Parameters

permissionMask

An SPBasePermissions value that specifies permissions for the list.

checkFolder

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

Return Value

true if permissions succeeded; otherwise, false.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker