This documentation is archived and is not being maintained.

SPWeb.ServerRelativeUrl Property

Windows SharePoint Services 3

Gets or sets the server-relative URL for the Web site.

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: