SPContextPageInfo.ListId Property
Gets the Id of the list that contains the page.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Property ListId As Guid
Get
Friend Set
'Usage
Dim instance As SPContextPageInfo
Dim value As Guid
value = instance.ListId
public Guid ListId { get; internal set; }
Property Value
Type: System.Guid
The value of the list’s ID property. When the page is not on a list, GUID.Empty is returned.