Partilhar via


Helper.FindValueWithKey Method (WorkflowContext, String, String, Object)

Gets the item in the specified list that contains the specified field value.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public Shared Function FindValueWithKey ( _
    context As WorkflowContext, _
    externalListId As String, _
    fieldNameInExternal As String, _
    value As Object _
) As SPItemKey
'Usage
Dim context As WorkflowContext
Dim externalListId As String
Dim fieldNameInExternal As String
Dim value As Object
Dim returnValue As SPItemKey

returnValue = Helper.FindValueWithKey(context, _
    externalListId, fieldNameInExternal, _
    value)
public static SPItemKey FindValueWithKey(
    WorkflowContext context,
    string externalListId,
    string fieldNameInExternal,
    Object value
)

Parameters

Return Value

Type: Microsoft.SharePoint.Workflow.SPItemKey
The list item found.

Remarks

This method returns the empty list item if the list item cannot be found in the specified list or the type of the list item is Invalid.

See Also

Reference

Helper Class

Helper Members

FindValueWithKey Overload

Microsoft.SharePoint.WorkflowActions Namespace