SPWeb.ServerRelativeUrl property

Gets or sets the server-relative URL for the website.

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

public string ServerRelativeUrl { get; set; }

Property value

Type: System.String
A string that contains the server-relative URL.
Show: