NavigationTerm.SimpleLinkUrl property

Gets or sets the target URL if the navigation node represents a simple link.

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

Syntax

'Declaration
Public Property SimpleLinkUrl As String
    Get
    Set
'Usage
Dim instance As NavigationTerm
Dim value As String

value = instance.SimpleLinkUrl

instance.SimpleLinkUrl = value
public string SimpleLinkUrl { get; set; }

Property value

Type: System.String

Remarks

This property is only used when the LinkType is NavigationLinkType.SimpleLink. For other link types, attempting to change it will cause an InvalidOperationException to be thrown. The default value is an empty string, which causes the node to appear in the navigation menu as a heading (that is, there is no associated hyperlink).

The SimpleLinkUrl may be server-relative or absolute format. It also supports other URI schemes such as ftp://, as defined by the IsProtocolAllowed(String) method.

This URL may contain tokens such as ~site/ (representing the server-relative URL for the associated Web object) or [~sitecollection/] (representing the server-relative URL for the associated Site object). These tokens are expanded by methods such as the GetResolvedDisplayUrl(String) method orthe Url property.

See also

Reference

NavigationTerm class

NavigationTerm members

Microsoft.SharePoint.Client.Publishing.Navigation namespace