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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Sub New ( _
    id As Guid, _
    zone As SPUrlZone _
)
'Usage
Dim id As Guid
Dim zone As SPUrlZone

Dim instance As New SPSite(id, zone)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public SPSite(
    Guid id,
    SPUrlZone zone
)

Parameters

  • id
    Type: System.Guid

    A GUID that specifies the site collection.

See Also

Reference

SPSite Class

SPSite Members

SPSite Overload

Microsoft.SharePoint Namespace