次の方法で共有


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)

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