Interface INavigationNodeCollection
Represents the Navigation
Assembly: PnP.Core.dll
Syntax
public interface INavigationNodeCollection : IDataModelCollection<INavigationNode>, IDataModelParent, IDataModelWithContext, IRequestableCollection, ISupportModules<INavigationNodeCollection>
Properties
This variable will define whether we will be using the top navigation or the quick launch for our API calls
Declaration
NavigationType NavigationType { get; }
Property Value
Methods
Method to add a Navigation Node
Declaration
INavigationNode Add(NavigationNodeOptions navigationNodeOptions)
Parameters
Returns
Method to add a Navigation Node
Declaration
Task<INavigationNode> AddAsync(NavigationNodeOptions navigationNodeOptions)
Parameters
Returns
Method to delete all navigation nodes from a specific navigation type
Declaration
Method to delete all navigation nodes from a specific navigation type
Declaration
Task DeleteAllNodesAsync()
Returns
Method to delete all navigation nodes from a specific navigation type in a batch
Declaration
void DeleteAllNodesBatch()
Method to delete all navigation nodes from a specific navigation type in a batch
Declaration
void DeleteAllNodesBatch(Batch batch)
Parameters
Batch
batch
The batch to add this reques to
|
Method to delete all navigation nodes from a specific navigation type in a batch
Declaration
Task DeleteAllNodesBatchAsync()
Returns
Method to delete all navigation nodes from a specific navigation type in a batch
Declaration
Task DeleteAllNodesBatchAsync(Batch batch)
Parameters
Batch
batch
The batch to add this reques to
|
Returns
Method to select a specific Navigation Node
Declaration
INavigationNode GetById(int id, params Expression<Func<INavigationNode, object>>[] selectors)
Parameters
System.Int32
id
The Id to search for
|
Expression<Func<INavigationNode, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Method to select a specific Navigation Node
Declaration
Task<INavigationNode> GetByIdAsync(int id, params Expression<Func<INavigationNode, object>>[] selectors)
Parameters
System.Int32
id
The Id to search for
|
Expression<Func<INavigationNode, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Function to move a node after another navigation node
Declaration
void MoveNodeAfter(INavigationNode nodeToMove, INavigationNode nodeToMoveAfter)
Parameters
Function to move a node after another navigation node
Declaration
Task MoveNodeAfterAsync(INavigationNode nodeToMove, INavigationNode nodeToMoveAfter)
Parameters
Returns
Extension Methods