Share via


SiteElementControl.ListItem property

Gets the SPListItem the control refers to.

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

Syntax

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

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

Property value

Type: Microsoft.SharePoint.SPListItem
The SPListItem object that the control refers to.

See also

Reference

SiteElementControl class

SiteElementControl members

Microsoft.SharePoint.Publishing.WebControls namespace