SPContext.ListItem property

Gets the list item associated with the Microsoft SharePoint Foundation context.

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

Syntax

'Declaration
Public ReadOnly Property ListItem As SPListItem
    Get
'Usage
Dim instance As SPContext
Dim value As SPListItem

value = instance.ListItem
public SPListItem ListItem { get; }

Property value

Type: Microsoft.SharePoint.SPListItem
An SPListItem object that represents the list item.

See also

Reference

SPContext class

SPContext members

Microsoft.SharePoint namespace