PublishingPage.AddFriendlyUrl method

Adds a user-friendly URL for this PublishingPage object.

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

Syntax

'Declaration
Public Function AddFriendlyUrl ( _
    friendlyUrlSegment As String, _
    editableParent As NavigationTermSetItem, _
    doAddToNavigation As Boolean _
) As ClientResult(Of String)
'Usage
Dim instance As PublishingPage
Dim friendlyUrlSegment As String
Dim editableParent As NavigationTermSetItem
Dim doAddToNavigation As Boolean
Dim returnValue As ClientResult(Of String)

returnValue = instance.AddFriendlyUrl(friendlyUrlSegment, _
    editableParent, doAddToNavigation)
public ClientResult<string> AddFriendlyUrl(
    string friendlyUrlSegment,
    NavigationTermSetItem editableParent,
    bool doAddToNavigation
)

Parameters

  • friendlyUrlSegment
    Type: System.String

    The user-friendly text to use as the URL segment.

  • doAddToNavigation
    Type: System.Boolean

    Indicates whether to add the friendly URL into the managed navigation.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<String>
The new server-relative friendly URL for this PublishingPage object.

Remarks

The editableParent parameter must be retrieved as an editable item.

See also

Reference

PublishingPage class

PublishingPage members

Microsoft.SharePoint.Client.Publishing namespace