Share via


NavigationTerm.GetWebRelativeFriendlyUrl method

Returns the friendly URL segments as a concatenated path.

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

Syntax

'Declaration
Public Overridable Function GetWebRelativeFriendlyUrl As String
'Usage
Dim instance As NavigationTerm
Dim returnValue As String

returnValue = instance.GetWebRelativeFriendlyUrl()
public virtual string GetWebRelativeFriendlyUrl()

Return value

Type: System.String
A URL path that begins with a / character, or else an empty string.

Remarks

This method returns only the web-relative portion of the friendly URL prefixed by a leading slash. To obtain the complete server-relative URL, use the GetResolvedDisplayUrl(String) instead.

See also

Reference

NavigationTerm class

NavigationTerm members

Microsoft.SharePoint.Publishing.Navigation namespace