NavigationTermSetItem.GetResolvedDisplayUrl method
Returns the URL that is displayed in the navigation menus.
Namespace: Microsoft.SharePoint.Publishing.Navigation
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Function GetResolvedDisplayUrl ( _
browserQueryString As String _
) As String
'Usage
Dim instance As NavigationTermSetItem
Dim browserQueryString As String
Dim returnValue As String
returnValue = instance.GetResolvedDisplayUrl(browserQueryString)
public string GetResolvedDisplayUrl(
string browserQueryString
)
Parameters
browserQueryString
Type: System.StringOptional. 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: System.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 property.
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, null is returned.