共用方式為


ISecurableObject.DoesUserHavePermissions Method

NOTE: This API is now obsolete.

Checks the permissions of the user for a given set of rights.

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

Syntax

'Declaration
<ObsoleteAttribute("Use the SPSecurableObject class instead")> _
Function DoesUserHavePermissions ( _
    permissionMask As SPBasePermissions _
) As Boolean
'Usage
Dim instance As ISecurableObject
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(permissionMask)
[ObsoleteAttribute("Use the SPSecurableObject class instead")]
bool DoesUserHavePermissions(
    SPBasePermissions permissionMask
)

Parameters

Return Value

Type: System.Boolean
true if the permissions of the user include the set of rights; otherwise, false.

See Also

Reference

ISecurableObject Interface

ISecurableObject Members

Microsoft.SharePoint Namespace