IDeploymentContext.SiteUrl 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.SPWeb 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 SiteUrl As Uri
Uri SiteUrl()

Return Value

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

Remarks

This may or may not be identical to ISharePointProject.SiteUrl, but they point to the same resource.

This value is queried from SharePoint so that it is consistent with SiteCollectionUrl.

For example, the ISharePointProject.SiteUrl may be https://localhost, but SharePoint will resolve it to http://hostname.

.NET Framework Security

See Also

Reference

IDeploymentContext Interface

Microsoft.VisualStudio.SharePoint.Deployment Namespace