Partilhar via


Helper.CheckPermission Method (WorkflowContext, Guid, SPItemKey, ArrayList, ArrayList, Guid, SPItemKey, Boolean)

Checks for valid permissions on a specific list or list item during the execution of the specified workflow instance.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public Shared Function CheckPermission ( _
    context As WorkflowContext, _
    currentListId As Guid, _
    currentListItem As SPItemKey, _
    users As ArrayList, _
    roles As ArrayList, _
    targetListId As Guid, _
    targetListItem As SPItemKey, _
    usePermissionLevel As Boolean _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim currentListId As Guid
Dim currentListItem As SPItemKey
Dim users As ArrayList
Dim roles As ArrayList
Dim targetListId As Guid
Dim targetListItem As SPItemKey
Dim usePermissionLevel As Boolean
Dim returnValue As Boolean

returnValue = Helper.CheckPermission(context, _
    currentListId, currentListItem, _
    users, roles, targetListId, targetListItem, _
    usePermissionLevel)
public static bool CheckPermission(
    WorkflowContext context,
    Guid currentListId,
    SPItemKey currentListItem,
    ArrayList users,
    ArrayList roles,
    Guid targetListId,
    SPItemKey targetListItem,
    bool usePermissionLevel
)

Parameters

  • currentListId
    Type: System.Guid

    The GUID of the current list.

Return Value

Type: System.Boolean
true if the permissions are valid; otherwise, false.

See Also

Reference

Helper Class

Helper Members

CheckPermission Overload

Microsoft.SharePoint.WorkflowActions Namespace