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
Methods
Add(NavigationNodeOptions)
Method to add a Navigation Node
INavigationNode Add(NavigationNodeOptions navigationNodeOptions)
Parameters
navigationNodeOptionsNavigationNodeOptionsThe options for the navigation node
Returns
- INavigationNode
The navigation node
AddAsync(NavigationNodeOptions)
Method to add a Navigation Node
Task<INavigationNode> AddAsync(NavigationNodeOptions navigationNodeOptions)
Parameters
navigationNodeOptionsNavigationNodeOptionsThe 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
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
batchBatchThe batch to add this reques to
DeleteAllNodesBatchAsync()
Method to delete all navigation nodes from a specific navigation type in a batch
Task DeleteAllNodesBatchAsync()
Returns
DeleteAllNodesBatchAsync(Batch)
Method to delete all navigation nodes from a specific navigation type in a batch
Task DeleteAllNodesBatchAsync(Batch batch)
Parameters
batchBatchThe batch to add this reques to
Returns
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
idintThe Id to search for
selectorsExpression<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
idintThe Id to search for
selectorsExpression<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
nodeToMoveINavigationNodenodeToMoveAfterINavigationNode
MoveNodeAfterAsync(INavigationNode, INavigationNode)
Function to move a node after another navigation node
Task MoveNodeAfterAsync(INavigationNode nodeToMove, INavigationNode nodeToMoveAfter)
Parameters
nodeToMoveINavigationNodenodeToMoveAfterINavigationNode