Helper.HTLookupDateTime Method
Gets the instant in time value of the specified field in the specified hash table.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function HTLookupDateTime ( _
context As WorkflowContext, _
collection As Hashtable, _
fieldName As String _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim collection As Hashtable
Dim fieldName As String
Dim returnValue As DateTime
returnValue = Helper.HTLookupDateTime(context, _
collection, fieldName)
public static DateTime HTLookupDateTime(
WorkflowContext context,
Hashtable collection,
string fieldName
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the active workflow instance.
collection
Type: System.Collections.HashtableThe hash table to search.
fieldName
Type: System.StringThe name of the field to look up in collection.
Return Value
Type: System.DateTime
The instant in time value of the specified field in the specified hash table.
Remarks
This method returns the local time or MinValue if the value cannot be found in the collection.