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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
ignorestr
Type: System.StringA String that is ignored when returning results.
ignoreint
Type: System.Int32An Int32 value that is ignored when returning results.
fieldName
Type: System.StringA 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.