Helper.CheckPermissionExact Method (WorkflowContext, String, Int32, ArrayList, ArrayList, String, Int32)
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 Integer, _
users As ArrayList, _
roles As ArrayList, _
targetListId As String, _
targetListItem As Integer _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim currentListId As String
Dim currentListItem As Integer
Dim users As ArrayList
Dim roles As ArrayList
Dim targetListId As String
Dim targetListItem As Integer
Dim returnValue As Boolean
returnValue = Helper.CheckPermissionExact(context, _
currentListId, currentListItem, _
users, roles, targetListId, targetListItem)
public static bool CheckPermissionExact(
WorkflowContext context,
string currentListId,
int currentListItem,
ArrayList users,
ArrayList roles,
string targetListId,
int targetListItem
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
- currentListId
Type: System.String
- currentListItem
Type: System.Int32
- users
Type: System.Collections.ArrayList
- roles
Type: System.Collections.ArrayList
- targetListId
Type: System.String
- targetListItem
Type: System.Int32
Return Value
Type: System.Boolean
true if the permissions are valid and at the correct level; otherwise, false.