SPListItem.ParentList Property

Gets the list that includes the list item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
Public ReadOnly Property ParentList As SPList
    Get
'Usage
Dim instance As SPListItem
Dim value As SPList

value = instance.ParentList
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public SPList ParentList { get; }

Property Value

Type: Microsoft.SharePoint.SPList
An object that represents the parent list.

See Also

Reference

SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace