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)

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.

See also

Reference

SPContext class

SPContext members

Microsoft.SharePoint namespace