SPSite constructor (Guid, SPUrlZone)

Initializes a new instance of the SPSite class based on the specified site collection GUID and URL zone.

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


Public Sub New ( _
    id As Guid, _
    zone As SPUrlZone _
Dim id As Guid
Dim zone As SPUrlZone

Dim instance As New SPSite(id, zone)
public SPSite(
    Guid id,
    SPUrlZone zone


  • id
    Type: System.Guid

    A GUID that specifies the site collection.

See also


SPSite class

SPSite members

SPSite overload

Microsoft.SharePoint namespace