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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
val
Type: System.ObjectA Object.
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.