Share via


Helper.WILookupDateTime method (WorkflowContext, String)

Looks up and returns a DateTime object from the specified field in the given workflow context.

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

Syntax

'Declaration
Public Shared Function WILookupDateTime ( _
    context As WorkflowContext, _
    fieldName As String _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim fieldName As String
Dim returnValue As DateTime

returnValue = Helper.WILookupDateTime(context, _
    fieldName)
public static DateTime WILookupDateTime(
    WorkflowContext context,
    string fieldName
)

Parameters

  • fieldName
    Type: System.String

    A value representing the desired field to return.

    The following fields are available: LastRunDateTime and StartedDateTime.

Return value

Type: System.DateTime
The instant in time.

See also

Reference

Helper class

Helper members

WILookupDateTime overload

Microsoft.SharePoint.WorkflowActions namespace