Partilhar via


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

  • listItem
    Type: System.Int32

    An 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.

See Also

Reference

WorkflowContext Class

WorkflowContext Members

GetListItem Overload

Microsoft.SharePoint.WorkflowActions Namespace