Share via


Helper.UseItemId method

Coerces a Object to an SPItemKey using AsSPItemKeyExceptNullNoConvert(WorkflowContext, Object) which retrieves an SPItemKey object and then returns the Id property of the result.

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

Syntax

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

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

Parameters

Return value

Type: System.Int32
The list item ID.

Remarks

If the object supplied to this method is not an SPItemKey, then a CoercionException is returned.

See also

Reference

Helper class

Helper members

Microsoft.SharePoint.WorkflowActions namespace