Compartilhar via


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

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.

See Also

Reference

WorkflowContext Class

WorkflowContext Members

GetListItem Overload

Microsoft.SharePoint.WorkflowActions Namespace