SPContext.RootFolderUrl property
SharePoint 2013
Gets the URL of the root folder for the current context.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.StringA string that contains a server-relative URL or an empty string if there is no root folder in the current context.