Table of Contents

Interface INavigationNodeCollection

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Represents the Navigation

public interface INavigationNodeCollection : IQueryable<INavigationNode>, IQueryable, IDataModelCollection<INavigationNode>, IEnumerable<INavigationNode>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, ISupportModules<INavigationNodeCollection>
Inherited Members
Extension Methods

Properties

NavigationType

This variable will define whether we will be using the top navigation or the quick launch for our API calls

NavigationType NavigationType { get; }

Property Value

NavigationType

Methods

Add(NavigationNodeOptions)

Method to add a Navigation Node

INavigationNode Add(NavigationNodeOptions navigationNodeOptions)

Parameters

navigationNodeOptions NavigationNodeOptions

The options for the navigation node

Returns

INavigationNode

The navigation node

AddAsync(NavigationNodeOptions)

Method to add a Navigation Node

Task<INavigationNode> AddAsync(NavigationNodeOptions navigationNodeOptions)

Parameters

navigationNodeOptions NavigationNodeOptions

The options for the navigation node

Returns

Task<INavigationNode>

The navigation node

DeleteAllNodes()

Method to delete all navigation nodes from a specific navigation type

void DeleteAllNodes()

DeleteAllNodesAsync()

Method to delete all navigation nodes from a specific navigation type

Task DeleteAllNodesAsync()

Returns

Task

DeleteAllNodesBatch()

Method to delete all navigation nodes from a specific navigation type in a batch

void DeleteAllNodesBatch()

DeleteAllNodesBatch(Batch)

Method to delete all navigation nodes from a specific navigation type in a batch

void DeleteAllNodesBatch(Batch batch)

Parameters

batch Batch

The batch to add this reques to

DeleteAllNodesBatchAsync()

Method to delete all navigation nodes from a specific navigation type in a batch

Task DeleteAllNodesBatchAsync()

Returns

Task

DeleteAllNodesBatchAsync(Batch)

Method to delete all navigation nodes from a specific navigation type in a batch

Task DeleteAllNodesBatchAsync(Batch batch)

Parameters

batch Batch

The batch to add this reques to

Returns

Task

GetById(int, params Expression<Func<INavigationNode, object>>[])

Method to select a specific Navigation Node

INavigationNode GetById(int id, params Expression<Func<INavigationNode, object>>[] selectors)

Parameters

id int

The Id to search for

selectors Expression<Func<INavigationNode, object>>[]

The expressions declaring the fields to select

Returns

INavigationNode

The navigation node, if any

GetByIdAsync(int, params Expression<Func<INavigationNode, object>>[])

Method to select a specific Navigation Node

Task<INavigationNode> GetByIdAsync(int id, params Expression<Func<INavigationNode, object>>[] selectors)

Parameters

id int

The Id to search for

selectors Expression<Func<INavigationNode, object>>[]

The expressions declaring the fields to select

Returns

Task<INavigationNode>

The navigation node, if any

MoveNodeAfter(INavigationNode, INavigationNode)

Function to move a node after another navigation node

void MoveNodeAfter(INavigationNode nodeToMove, INavigationNode nodeToMoveAfter)

Parameters

nodeToMove INavigationNode
nodeToMoveAfter INavigationNode

MoveNodeAfterAsync(INavigationNode, INavigationNode)

Function to move a node after another navigation node

Task MoveNodeAfterAsync(INavigationNode nodeToMove, INavigationNode nodeToMoveAfter)

Parameters

nodeToMove INavigationNode
nodeToMoveAfter INavigationNode

Returns

Task