NavigationTermSetItem.GetResolvedDisplayUrl method

Returns the URL that is displayed in the navigation menus.

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

Syntax

'Declaration
Public Function GetResolvedDisplayUrl ( _
    browserQueryString As String _
) As ClientResult(Of String)
'Usage
Dim instance As NavigationTermSetItem
Dim browserQueryString As String
Dim returnValue As ClientResult(Of String)

returnValue = instance.GetResolvedDisplayUrl(browserQueryString)
public ClientResult<string> GetResolvedDisplayUrl(
    string browserQueryString
)

Parameters

  • browserQueryString
    Type: System.String

    Optional. If it is provided, this query string is used as the query string part of the resulting URL. If this parameter is not a null reference (Nothing in Visual Basic) or an empty string, it must be prefixed with the ? character.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<String>
A server-relative URL or an empty string.

Remarks

Note

To obtain the target page address for a friendly URL, use theGetResolvedTargetUrl(String, []) method instead. The returned URL is resolved by expanding any prefix tokens such as ~site/ or ~sitecollection/ which are used with properties such as SimpleLinkUrl and TargetUrl.

The URL is derived differently depending on the NavigationLinkType value. If the term is of type SimpleLink, then the SimpleLinkUrl property is used. If the term is of type FriendlyUrl, then the friendly URL is used. For all other cases, a null reference (Nothing in Visual Basic) is returned.

See also

Reference

NavigationTermSetItem class

NavigationTermSetItem members

Microsoft.SharePoint.Client.Publishing.Navigation namespace