Partilhar via


Helper.CheckPermissionExact Method (WorkflowContext, String, SPItemKey, ArrayList, ArrayList, String, SPItemKey)

Checks for specific user permissions for a specific list or list items 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 CheckPermissionExact ( _
    context As WorkflowContext, _
    currentListId As String, _
    currentListItem As SPItemKey, _
    users As ArrayList, _
    roles As ArrayList, _
    targetListId As String, _
    targetListItem As SPItemKey _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim currentListId As String
Dim currentListItem As SPItemKey
Dim users As ArrayList
Dim roles As ArrayList
Dim targetListId As String
Dim targetListItem As SPItemKey
Dim returnValue As Boolean

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

Parameters

Return Value

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

See Also

Reference

Helper Class

Helper Members

CheckPermissionExact Overload

Microsoft.SharePoint.WorkflowActions Namespace