Table of contents
TOC
Collapse the table of content
Expand the table of content

NavigationExtensions.DeleteNavigationNode Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Deletes a navigation node from the quickLaunch or top navigation bar

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void DeleteNavigationNode(this Web web, String nodeTitle, String parentNodeTitle, NavigationType navigationType)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Site to be processed - can be root web or sub site

nodeTitle

  Type: System.String
  the title of node to delete

parentNodeTitle

  Type: System.String
  if string.Empty, then will delete this node as top level node

  Type: OfficeDevPnP.Core.Enums.NavigationType
  the type of navigation, quick launch, top navigation or search navigation

Return Value

Type: void

See also

© 2018 Microsoft