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)


Public ReadOnly Property ListId As Guid
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


SPContext class

SPContext members

Microsoft.SharePoint namespace