3.1.5.4.2.1.5 SetCrawlAsFriendlyUrlPage

This method is a static CSOM method.

Return Type: CSOM Boolean

This method assigns a Boolean property stored with the specified publishing page: If this property is true, then the search crawler will omit the page's physical URL from the search index, because the search index already contains one or more friendly URLs for the page. If this property is false, then the page is indexed in the normal manner.

If the update was performed successfully, or if the page property was already in the specified state, then the return value MUST be true. The return value MUST be false otherwise, including cases such as: the navigationTerm is null, the navigationTerm is not a friendly URL, the target page is invalid, the target page cannot be found, the caller does not have permissions to perform the change, and so on.

Parameters:

navigationTerm: A navigation term indicating the publishing page to be updated.

Type: Microsoft.SharePoint.Client.Publishing.Navigation.NavigationTerm

The navigationTerm property SHOULD have NavigationTerm.LinkType property (section 3.1.5.5.1.1.7) equal to NavigationLinkType.FriendlyUrl (section 3.1.5.3.1.2), and its NavigationTerm.TargetUrl property (section 3.1.5.5.1.2.5) is used to identify the publishing page to be updated. (The page is specified in this way because it is convenient for a specific editing surface.)

crawlAsFriendlyUrlPage: The new value of the publishing page property.

Type: CSOM Boolean