Share via


SPContextPageInfo.ListId property

Gets the Id of the list that contains the page.

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

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.

See also

Reference

SPContextPageInfo class

SPContextPageInfo members

Microsoft.SharePoint namespace