This documentation is archived and is not being maintained.

SPSite Constructor

Windows SharePoint Services 3

Initializes a new instance of the SPSite class.

  NameDescription
Public method SPSite(Guid) Initializes a new instance of the SPSite class based on the specified GUID for a site collection and the default URL zone (SPUrlZone.Default).
Public method SPSite(String) Initializes a new instance of the SPSite class based on the specified absolute URL.
Public method SPSite(Guid, SPUrlZone) Initializes a new instance of the SPSite class based on the specified site collection GUID and URL zone.
Public method SPSite(Guid, SPUserToken) Initializes a new instance of the SPSite class based on the specified site collection GUID and user token.
Public method SPSite(String, SPUserToken) Initializes a new instance of the SPSite class based on the specified absolute URL and user token.
Public method SPSite(Guid, SPUrlZone, SPUserToken) Initializes a new instance of the SPSite class based on the specified site collection GUID, URL zone, and user token.
Top
Show: