다음을 통해 공유


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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property List As SPList
    Get
'Usage
Dim instance As SPContext
Dim value As SPList

value = instance.List
public SPList List { get; }

Property Value

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

Remarks

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

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace