Share via


Helper.LookupDateTime method (WorkflowContext, String, SPItemKey, String)

Retrieves the instant in time of a field for a specified SharePoint Foundation list item.

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

Syntax

'Declaration
Public Shared Function LookupDateTime ( _
    context As WorkflowContext, _
    listIdOrName As String, _
    listItem As SPItemKey, _
    fieldName As String _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim listIdOrName As String
Dim listItem As SPItemKey
Dim fieldName As String
Dim returnValue As DateTime

returnValue = Helper.LookupDateTime(context, _
    listIdOrName, listItem, fieldName)
public static DateTime LookupDateTime(
    WorkflowContext context,
    string listIdOrName,
    SPItemKey listItem,
    string fieldName
)

Parameters

  • listIdOrName
    Type: System.String

    The GUID or display name of the list.

  • fieldName
    Type: System.String

    The name of the field in the specified list from which to retrieve a time instance value.

Return value

Type: System.DateTime
A value that is retrieved from the specified filed of the specified list item.

Remarks

This method gets the instance of time of the specified list item.

See also

Reference

Helper class

Helper members

LookupDateTime overload

Microsoft.SharePoint.WorkflowActions namespace