Helper.FindValue - Méthode (WorkflowContext, Guid, String, Object)
Recherche un élément dans une liste qui contient une valeur de champ qui correspond à la valeur spécifiée.
Espace de noms : Microsoft.SharePoint.WorkflowActions
Assembly : Microsoft.SharePoint.WorkflowActions (dans Microsoft.SharePoint.WorkflowActions.dll)
Syntaxe
'Déclaration
Public Shared Function FindValue ( _
context As WorkflowContext, _
externalListId As Guid, _
fieldNameInExternal As String, _
value As Object _
) As Integer
'Utilisation
Dim context As WorkflowContext
Dim externalListId As Guid
Dim fieldNameInExternal As String
Dim value As Object
Dim returnValue As Integer
returnValue = Helper.FindValue(context, _
externalListId, fieldNameInExternal, _
value)
public static int FindValue(
WorkflowContext context,
Guid externalListId,
string fieldNameInExternal,
Object value
)
Paramètres
context
Type : Microsoft.SharePoint.WorkflowActions.WorkflowContextWorkflowContexobjet t qui contient des propriétés qui sont associées à l'instance de workflow active.
externalListId
Type : System.GuidLe GUID de l'identificateur (ID) de la liste externe.
fieldNameInExternal
Type : System.StringUne chaîne qui représente le nom du champ dans la liste externe.
value
Type : System.ObjectUn objet qui contient la valeur du champ à rechercher dans la liste externe.
Valeur renvoyée
Type : System.Int32
L'élément de liste externe dans laquelle la valeur correspondante est trouvée.