Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPContext.List property

Gets the list that is associated with the Microsoft SharePoint Foundation context.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public SPList List { get; }

Property value

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

This property can be used, for example, in the script of a control template (%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\CONTROLTEMPLATES) to return the list of the current HTTP request context in a list site page.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.