Share via


Helper.TestListItem method (WorkflowContext, Guid, SPItemKey, String, String, Object)

Verifies whether the specified value matches the value of the field found in the specified list item of the specified list.

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

Syntax

'Declaration
Public Shared Function TestListItem ( _
    context As WorkflowContext, _
    listId As Guid, _
    listItem As SPItemKey, _
    fieldName As String, _
    comparison As String, _
    value As Object _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As Guid
Dim listItem As SPItemKey
Dim fieldName As String
Dim comparison As String
Dim value As Object
Dim returnValue As Boolean

returnValue = Helper.TestListItem(context, _
    listId, listItem, fieldName, comparison, _
    value)
public static bool TestListItem(
    WorkflowContext context,
    Guid listId,
    SPItemKey listItem,
    string fieldName,
    string comparison,
    Object value
)

Parameters

  • fieldName
    Type: System.String

    The name of the field for the specified list item in the specified list from which to retrieve the value.

  • value
    Type: System.Object

    A value to compare with the value found in the specified field.

Return value

Type: System.Boolean
true if the specified value matches the value of the field found in the specified list item of the specified list; otherwise, false.

Remarks

This method verifies whether the specified value matches the value of the field found in the specified list item of the specified list.

See also

Reference

Helper class

Helper members

TestListItem overload

Microsoft.SharePoint.WorkflowActions namespace