Share via


IDeploymentContext.SiteCollectionUrl Method

Definition

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

public:
 Uri ^ SiteCollectionUrl();
public Uri SiteCollectionUrl ();
abstract member SiteCollectionUrl : unit -> Uri
Public Function SiteCollectionUrl () As Uri

Returns

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.

Applies to