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.StringThe user-friendly text to use as the URL segment.
editableParent
Type: Microsoft.SharePoint.Client.Publishing.Navigation.NavigationTermSetItemThe parent NavigationTermSetItem object below which this new friendly URL should be created.
doAddToNavigation
Type: System.BooleanIndicates 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.