Share via


Helper.AsSPItemKeyExceptNullNoConvert Method

Attempts to coerce an SPItemKey object from a given object and workflow instance.

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

Syntax

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

returnValue = Helper.AsSPItemKeyExceptNullNoConvert(context, _
    val)
public static SPItemKey AsSPItemKeyExceptNullNoConvert(
    WorkflowContext context,
    Object val
)

Parameters

Return Value

Type: Microsoft.SharePoint.Workflow.SPItemKey
The list item.

Remarks

If the object provided is null, an exception will be thrown.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace