Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RootFolderUrl property

SPContext.RootFolderUrl property

Gets the URL of the root folder for the current context.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public string RootFolderUrl { get; }

Property value

Type: System.String
A string that contains a server-relative URL or an empty string if there is no root folder in the current context.
© 2015 Microsoft