Gets or sets the server-relative URL for the Web site.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Property ServerRelativeUrl As String
Dim instance As SPWeb
Dim value As String
value = instance.ServerRelativeUrl
instance.ServerRelativeUrl = value
public string ServerRelativeUrl { get; set; }
Property Value
A string that contains the server-relative URL.