Share via


SPSite.ID property

Gets the GUID that identifies the site collection.

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

Syntax

'Declaration
Public ReadOnly Property ID As Guid
    Get
'Usage
Dim instance As SPSite
Dim value As Guid

value = instance.ID
public Guid ID { get; }

Property value

Type: System.Guid
A GUID that identifies the site collection.

See also

Reference

SPSite class

SPSite members

Microsoft.SharePoint namespace