Partilhar via


Helper.LookupColumnDataOnlyAsDateTime Method

Gets a local instant in time from the specified string.

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

Syntax

'Declaration
Public Shared Function LookupColumnDataOnlyAsDateTime ( _
    context As WorkflowContext, _
    val As Object _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As DateTime

returnValue = Helper.LookupColumnDataOnlyAsDateTime(context, _
    val)
public static DateTime LookupColumnDataOnlyAsDateTime(
    WorkflowContext context,
    Object val
)

Parameters

  • val
    Type: System.Object

    The string containing the instant in time.

Return Value

Type: System.DateTime
A local instant in time.

Remarks

This method throws a CoercionException if val cannot be cast to a String object, or is not in the correct format.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace