Partilhar via


Helper.LookupColumnDataOnlyAsInteger Method

Gets an integer value from the specified string.

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

Syntax

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

returnValue = Helper.LookupColumnDataOnlyAsInteger(context, _
    val)
public static int LookupColumnDataOnlyAsInteger(
    WorkflowContext context,
    Object val
)

Parameters

  • val
    Type: System.Object

    The string containing the integer value.

Return Value

Type: System.Int32
The integer data portion of the lookup string.

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