Поделиться через


Свойство NavigationTerm.SimpleLinkUrl

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

Пространство имен:  Microsoft.SharePoint.Publishing.Navigation
Сборка:  Microsoft.SharePoint.Publishing (в Microsoft.SharePoint.Publishing.dll)

Синтаксис

'Декларация
Public MustOverride Property SimpleLinkUrl As String
    Get
    Set
'Применение
Dim instance As NavigationTerm
Dim value As String

value = instance.SimpleLinkUrl

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

Значение свойства

Тип: System.String

Замечания

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.

См. также

Справочные материалы

NavigationTerm класс

Элементы NavigationTerm

Пространство имен Microsoft.SharePoint.Publishing.Navigation

SPUrlUtility.IsProtocolAllowed