SPContext.ListId Property
Gets the GUID of 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: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property ListId As Guid
Get
'Usage
Dim instance As SPContext
Dim value As Guid
value = instance.ListId
public Guid ListId { get; }
Property Value
Type: System.Guid
A GUID that identifies the list.