Share via


Helper.LookupIdOnlyAsInteger method

Gets the ID of a list item based on the specified lookup string.

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

Syntax

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

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

Parameters

Return value

Type: System.Int32
The ID of the list item.

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