Helper.CheckPermission Method (WorkflowContext, Guid, Int32, ArrayList, ArrayList, Guid, Int32, Boolean)
Checks for valid permissions on 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 CheckPermission ( _
context As WorkflowContext, _
currentListId As Guid, _
currentListItem As Integer, _
users As ArrayList, _
roles As ArrayList, _
targetListId As Guid, _
targetListItem As Integer, _
usePermissionLevel As Boolean _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim currentListId As Guid
Dim currentListItem As Integer
Dim users As ArrayList
Dim roles As ArrayList
Dim targetListId As Guid
Dim targetListItem As Integer
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,
int currentListItem,
ArrayList users,
ArrayList roles,
Guid targetListId,
int targetListItem,
bool usePermissionLevel
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
- currentListId
Type: System.Guid
- currentListItem
Type: System.Int32
- users
Type: System.Collections.ArrayList
- roles
Type: System.Collections.ArrayList
- targetListId
Type: System.Guid
- targetListItem
Type: System.Int32
- usePermissionLevel
Type: System.Boolean
Return Value
Type: System.Boolean
true if the permissions are valid; otherwise, false.