NavigationTerm.SimpleLinkUrl property
Gets or sets the target URL if the navigation node represents a simple link.
Namespace: Microsoft.SharePoint.Publishing.Navigation
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public MustOverride Property SimpleLinkUrl As String
Get
Set
'Usage
Dim instance As NavigationTerm
Dim value As String
value = instance.SimpleLinkUrl
instance.SimpleLinkUrl = value
public abstract 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 (i.e. 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 SPWeb object) or [~sitecollection/] (representing the server-relative UR for the associated SPSite object). These tokens are expanded by methods such as the GetResolvedDisplayUrl(String) method orthe Url property.