Share via


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

Retrieves the instant in time for a specified SharePoint Foundation list item when the list GUID and list item are known.

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

Syntax

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

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

Parameters

  • fieldName
    Type: System.String

    The name of the field in the specified list from which to retrieve the date and time value.

Return value

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

Remarks

This method gets the date and file for the specified field.

See also

Reference

Helper class

Helper members

LookupDateTime overload

Microsoft.SharePoint.WorkflowActions namespace