Helper.CheckPermission - Méthode (WorkflowContext, Guid, Int32, ArrayList, ArrayList, Guid, Int32, Boolean)
Vérifie les autorisations correctes sur liste spécifique ou des éléments de liste lors de l'exécution de l'instance de workflow spécifié.
Espace de noms : Microsoft.SharePoint.WorkflowActions
Assembly : Microsoft.SharePoint.WorkflowActions (dans Microsoft.SharePoint.WorkflowActions.dll)
Syntaxe
'Déclaration
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
'Utilisation
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
)
Paramètres
context
Type : Microsoft.SharePoint.WorkflowActions.WorkflowContextUn objet WorkflowContext qui contient des propriétés qui sont associées à l'instance de workflow active.
- 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
Valeur renvoyée
Type : System.Boolean
true si les autorisations sont valides ; dans le cas contraire, false.