SPWeb.ServerRelativeUrl property

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

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

Syntax

public string ServerRelativeUrl { get; set; }

Property value

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

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace