Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The ServerRelativeUrl property of the SPSite class gets the server-relative URL of the root Web site in the site collection.
Property Value
A string that contains the URL.
Remarks
The ServerRelativeUrl property contains a forward slash ("/").
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security