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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.