WorkflowContext.GetListItem Method (SPList, Int32)
Retrieves the cached version of a specified SPListItem with the specified parameters.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Function GetListItem ( _
list As SPList, _
listItem As Integer _
) As SPListItem
'Usage
Dim instance As WorkflowContext
Dim list As SPList
Dim listItem As Integer
Dim returnValue As SPListItem
returnValue = instance.GetListItem(list, _
listItem)
public SPListItem GetListItem(
SPList list,
int listItem
)
Parameters
list
Type: Microsoft.SharePoint.SPListAn SPList object. Specifies the list on a Microsoft SharePoint Foundation Web site that contains the list item.
listItem
Type: System.Int32An integer that represents the list item to retrieve.
Return Value
Type: Microsoft.SharePoint.SPListItem
An SPListItem object.
Remarks
The SPListItem is returned from either a normal list or a list with an external data source.