Share via


SPSite.ID Property

Gets the GUID that identifies the site collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute(Name := "Id")> _
Public ReadOnly Property ID As Guid
    Get
'Usage
Dim instance As SPSite
Dim value As Guid

value = instance.ID
[ClientCallableAttribute(Name = "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