Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.