Partilhar via


Helper.LookupColumnDataOnlyAsId Method

Gets a list item based on the specified string.

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

Syntax

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

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

Parameters

  • val
    Type: System.Object

    The string containing the ID of the list item.

Return Value

Type: Microsoft.SharePoint.Workflow.SPItemKey
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.

If the list is localized, this method returns the item in the localized list.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace