다음을 통해 공유


SPSecurableObject.DoesUserHavePermissions Method

Indicates whether the current user has a specified set of permissions.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Overridable Function DoesUserHavePermissions ( _
    permissionMask As SPBasePermissions _
) As Boolean
'Usage
Dim instance As SPSecurableObject
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean

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

Parameters

Return Value

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

Implements

ISecurableObject.DoesUserHavePermissions(SPBasePermissions)

See Also

Reference

SPSecurableObject Class

SPSecurableObject Members

Microsoft.SharePoint Namespace

CheckPermissions(SPBasePermissions)