Delen via


Helper.LookupDouble Method (WorkflowContext, String, Int32, String)

Retrieves the double value for a specified SharePoint Foundation list item from a specified field when the list GUID or the list name is known.

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

Syntax

'Declaration
Public Shared Function LookupDouble ( _
    context As WorkflowContext, _
    listIdOrName As String, _
    listItem As Integer, _
    fieldName As String _
) As Double
'Usage
Dim context As WorkflowContext
Dim listIdOrName As String
Dim listItem As Integer
Dim fieldName As String
Dim returnValue As Double

returnValue = Helper.LookupDouble(context, _
    listIdOrName, listItem, fieldName)
public static double LookupDouble(
    WorkflowContext context,
    string listIdOrName,
    int listItem,
    string fieldName
)

Parameters

  • listIdOrName
    Type: System.String

    A string that represents the GUID of the SharePoint Foundation list identifier (ID) or the display name of the list.

  • listItem
    Type: System.Int32

    An integer that represents the SharePoint Foundation list item in a specified list.

  • fieldName
    Type: System.String

    A string that represents the name of the field in the list from which you want to retrieve a double value.

Return Value

Type: System.Double
A double value from the specified field.

Remarks

The LookupDouble method reads the value of the specified field and stores it as an object. Then it modifies or casts the value of the object, depending on the SPFieldType of that field.

See Also

Reference

Helper Class

Helper Members

LookupDouble Overload

Microsoft.SharePoint.WorkflowActions Namespace