SPWeb.PortalUrl property
SharePoint 2013
Gets the URL to a portal site that is associated with the site.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.StringA string that contains a URL that ends with a forward slash ("/"), as in "http://Portal_Name/".