Share via


SPWeb.ID property

Gets the GUID for the site.

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

Syntax

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

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

Property value

Type: System.Guid
The globally unique identifier for the website.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace