Share via


SPWeb.ServerRelativeUrl property

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

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

Syntax

'Declaration
Public Property ServerRelativeUrl As String
    Get
    Set
'Usage
Dim instance As SPWeb
Dim value As String

value = instance.ServerRelativeUrl

instance.ServerRelativeUrl = value
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