Share via


IDeploymentContext.SiteCollectionUrl Method

Returns the canonical URL of the Microsoft.SharePoint.SPSite that the project is connected to, according to SharePoint.

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

Syntax

'Declaration
Function SiteCollectionUrl As Uri
Uri SiteCollectionUrl()

Return Value

Type: Uri
The canonical URL of the Microsoft.SharePoint.SPSite that the project is connected to, according to SharePoint.

Remarks

May be the same as the SiteUrl if that site is WebRoot of its site collection.

.NET Framework Security

See Also

Reference

IDeploymentContext Interface

Microsoft.VisualStudio.SharePoint.Deployment Namespace