Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the server-relative URL of the root Web site in the site collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public ReadOnly Property ServerRelativeUrl As String
Get
'Usage
Dim instance As SPSite
Dim value As String
value = instance.ServerRelativeUrl
public string ServerRelativeUrl { get; }
Type: System.String
A string that contains the URL.
The ServerRelativeUrl property contains a forward slash ("/").