MtgUtility.GetServerRelativeUrl Method

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

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

MtgUtility Class

MtgUtility Members

Microsoft.SharePoint.Meetings Namespace

Url

Other Resources

Understanding Absolute and Relative URL Addresses