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
permissions
Type: Microsoft.SharePoint.SPBasePermissionsAn SPBasePermissions value that specifies the built-in permissions available in SharePoint Foundation.
context
Type: Microsoft.SharePoint.SPContextAn SPContext object that represents the context of an HTTP request.
Return Value
Type: System.Int32
true if the current user has permissions for the current SPLiist object; otherwise, false.
See Also
Reference
RightsSensitiveVisibilityHelper Class