Sdílet prostřednictvím


EditableAspMenuState.FriendlyUrlPrefix property

This specifies the Friendly URL prefix for starting node. For e.g. the TopNav menu which always starts at the top of the tree, the FriendlyUrlPrefix will typically be equal to SPWebPrefix. Suppose the starting node is "Products" (i.e. OmittedParentLevels=1) -- to obtain the Friendly URL for node "B" whose parent is node "A", the JavaScript would concatenate these strings: FriendlyUrlPrefix + A.FriendlyUrlSegment + "/" + B.FriendlyUrlSegment i.e. "https://contoso.com/sites/site1/web1/products/" + "tvs" + "/" + "cameras" Example: "https://contoso.com/sites/site1/web1/Products/"

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

Syntax

'Declaration
Public Property FriendlyUrlPrefix As String
    Get
    Set
'Usage
Dim instance As EditableAspMenuState
Dim value As String

value = instance.FriendlyUrlPrefix

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

Property value

Type: System.String

Remarks

(to client)

See also

Reference

EditableAspMenuState class

EditableAspMenuState members

Microsoft.SharePoint.Navigation namespace