WorkflowContext.GetListItem Method (SPList, SPItemKey)
Retrieves the cached version of a specified SPListItem with a key.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Function GetListItem ( _
list As SPList, _
listItem As SPItemKey _
) As SPListItem
'Usage
Dim instance As WorkflowContext
Dim list As SPList
Dim listItem As SPItemKey
Dim returnValue As SPListItem
returnValue = instance.GetListItem(list, _
listItem)
public SPListItem GetListItem(
SPList list,
SPItemKey listItem
)
Parameters
list
Type: Microsoft.SharePoint.SPListSpecifies the list on a Microsoft SharePoint Foundation Web site that contains the list item.
listItem
Type: Microsoft.SharePoint.Workflow.SPItemKeyRepresents the item to retrieve from the list.
Return Value
Type: Microsoft.SharePoint.SPListItem
The cached version of a specified SPListItem.
Remarks
The SPListItem is returned from either a normal list or a list with an external data source.