This documentation is archived and is not being maintained.

SPSite Constructor (Guid)

Windows SharePoint Services 3

Initializes a new instance of the SPSite class based on the specified GUID for a site collection and the default URL zone (SPUrlZone.Default).

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

public SPSite(
	Guid id


Type: System.Guid
A System.Guid object that specifies the site collection. If no site collection is found with the specified GUID, this constructor throws a File Not Found exception.