0 out of 1 rated this helpful - Rate this topic

SPSite.ServerRelativeUrl Property

Gets the server-relative URL of the root Web site in the site collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[ClientCallableAttribute]
public string ServerRelativeUrl { get; }

Property Value

Type: System.String
A string that contains the URL.

The ServerRelativeUrl property contains a forward slash ("/").

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ