Compartir a través de


IDeploymentContext.SiteCollectionUrl Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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: System.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