Share via


Helper.LookupInt method (WorkflowContext, Guid, SPItemKey, String)

Retrieves the integer value of a field for the specified list item.

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

Syntax

'Declaration
Public Shared Function LookupInt ( _
    context As WorkflowContext, _
    listId As Guid, _
    listItem As SPItemKey, _
    fieldName As String _
) As Integer
'Usage
Dim context As WorkflowContext
Dim listId As Guid
Dim listItem As SPItemKey
Dim fieldName As String
Dim returnValue As Integer

returnValue = Helper.LookupInt(context, _
    listId, listItem, fieldName)
public static int LookupInt(
    WorkflowContext context,
    Guid listId,
    SPItemKey listItem,
    string fieldName
)

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.

Return value

Type: System.Int32
A value that is retrieved from the specified field of the specified list item.

Remarks

This method gets the value of the specified field for the specified item in the list.

This method returns 0 if the field cannot be found.

See also

Reference

Helper class

Helper members

LookupInt overload

Microsoft.SharePoint.WorkflowActions namespace