다음을 통해 공유


RightsSensitiveVisibilityHelper.UserHasRightsOnCurrentListItem Method

Returns a Boolean value that indicates whether the current user has permissions for the current SPList object.

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

Syntax

'Declaration
Public Shared Function UserHasRightsOnCurrentListItem ( _
    permissions As SPBasePermissions, _
    context As SPContext _
) As Integer
'Usage
Dim permissions As SPBasePermissions
Dim context As SPContext
Dim returnValue As Integer

returnValue = RightsSensitiveVisibilityHelper.UserHasRightsOnCurrentListItem(permissions, _
    context)
public static int UserHasRightsOnCurrentListItem(
    SPBasePermissions permissions,
    SPContext context
)

Parameters

Return Value

Type: System.Int32
true if the current user has permissions for the current SPLiist object; otherwise, false.

See Also

Reference

RightsSensitiveVisibilityHelper Class

RightsSensitiveVisibilityHelper Members

Microsoft.SharePoint.Utilities Namespace