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 ServerRelativeUrl property of the Web site.
Namespace: Microsoft.SharePoint.Meetings
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetServerRelativeUrl ( _
spWeb As SPWeb _
) As String
'Usage
Dim spWeb As SPWeb
Dim returnValue As String
returnValue = MtgUtility.GetServerRelativeUrl(spWeb)
public static string GetServerRelativeUrl(
SPWeb spWeb
)
Parameters
spWeb
Type: Microsoft.SharePoint.SPWebSPWeb site.
Return Value
Type: System.String
The ServerRelativeUrl of the Web site.
Remarks
Instead of specifying every part of a URL that fully defines how to find an object, a URL can be abbreviated to make it "relative" to a current location. Relative URLs are typically used when creating a Web site whose pages refer to other pages within the Web site.
See Also
Reference
Microsoft.SharePoint.Meetings Namespace
Other Resources
Understanding Absolute and Relative URL Addresses