Partilhar via


Helper.WILookupDateTime Method (WorkflowContext, String, Int32, 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, _
    ignorestr As String, _
    ignoreint As Integer, _
    fieldName As String _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim ignorestr As String
Dim ignoreint As Integer
Dim fieldName As String
Dim returnValue As DateTime

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

Parameters

  • ignoreint
    Type: System.Int32

    An Int32 value that is ignored when returning results.

  • fieldName
    Type: System.String

    A String value that represents the desired DateTime 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