SPSite Constructors

Definition

Overloads

SPSite(Guid)
SPSite(String)
SPSite(Guid, SPUrlZone)
SPSite(Guid, SPUserToken)
SPSite(String, SPUserToken)
SPSite(Guid, SPUrlZone, SPUserToken)

SPSite(Guid)

public:
 SPSite(Guid id);
public SPSite (Guid id);
new Microsoft.SharePoint.SPSite : Guid -> Microsoft.SharePoint.SPSite
Public Sub New (id As Guid)

Parameters

id
Guid

Applies to

SPSite(String)

public:
 SPSite(System::String ^ requestUrl);
public SPSite (string requestUrl);
new Microsoft.SharePoint.SPSite : string -> Microsoft.SharePoint.SPSite
Public Sub New (requestUrl As String)

Parameters

requestUrl
String

Applies to

SPSite(Guid, SPUrlZone)

public:
 SPSite(Guid id, Microsoft::SharePoint::Administration::SPUrlZone zone);
[Microsoft.SharePoint.Client.SubsetCallableExcludeMember(Microsoft.SharePoint.Client.SubsetCallableExcludeMemberType.PerSpec)]
public SPSite (Guid id, Microsoft.SharePoint.Administration.SPUrlZone zone);
new Microsoft.SharePoint.SPSite : Guid * Microsoft.SharePoint.Administration.SPUrlZone -> Microsoft.SharePoint.SPSite
Public Sub New (id As Guid, zone As SPUrlZone)

Parameters

id
Guid
zone
SPUrlZone
Attributes
SubsetCallableExcludeMemberAttribute

Applies to

SPSite(Guid, SPUserToken)

public:
 SPSite(Guid id, Microsoft::SharePoint::SPUserToken ^ userToken);
[Microsoft.SharePoint.Client.SubsetCallableExcludeMember(Microsoft.SharePoint.Client.SubsetCallableExcludeMemberType.PerSpec)]
public SPSite (Guid id, Microsoft.SharePoint.SPUserToken userToken);
new Microsoft.SharePoint.SPSite : Guid * Microsoft.SharePoint.SPUserToken -> Microsoft.SharePoint.SPSite
Public Sub New (id As Guid, userToken As SPUserToken)

Parameters

id
Guid
userToken
SPUserToken
Attributes
SubsetCallableExcludeMemberAttribute

Applies to

SPSite(String, SPUserToken)

public:
 SPSite(System::String ^ requestUrl, Microsoft::SharePoint::SPUserToken ^ userToken);
[Microsoft.SharePoint.Client.SubsetCallableExcludeMember(Microsoft.SharePoint.Client.SubsetCallableExcludeMemberType.PerSpec)]
public SPSite (string requestUrl, Microsoft.SharePoint.SPUserToken userToken);
new Microsoft.SharePoint.SPSite : string * Microsoft.SharePoint.SPUserToken -> Microsoft.SharePoint.SPSite
Public Sub New (requestUrl As String, userToken As SPUserToken)

Parameters

requestUrl
String
userToken
SPUserToken
Attributes
SubsetCallableExcludeMemberAttribute

Applies to

SPSite(Guid, SPUrlZone, SPUserToken)

public:
 SPSite(Guid id, Microsoft::SharePoint::Administration::SPUrlZone zone, Microsoft::SharePoint::SPUserToken ^ userToken);
[Microsoft.SharePoint.Client.SubsetCallableExcludeMember(Microsoft.SharePoint.Client.SubsetCallableExcludeMemberType.PerSpec)]
public SPSite (Guid id, Microsoft.SharePoint.Administration.SPUrlZone zone, Microsoft.SharePoint.SPUserToken userToken);
new Microsoft.SharePoint.SPSite : Guid * Microsoft.SharePoint.Administration.SPUrlZone * Microsoft.SharePoint.SPUserToken -> Microsoft.SharePoint.SPSite
Public Sub New (id As Guid, zone As SPUrlZone, userToken As SPUserToken)

Parameters

id
Guid
zone
SPUrlZone
userToken
SPUserToken
Attributes
SubsetCallableExcludeMemberAttribute

Applies to