Search Results for

    Show / Hide Table of Contents

    Interface INavigationNodeCollection

    Represents the Navigation

    Inherited Members
    IQueryable.ElementType
    IQueryable.Expression
    IQueryable.Provider
    IEnumerable<INavigationNode>.GetEnumerator()
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IRequestableCollection.Requested
    IRequestableCollection.Length
    IRequestableCollection.RequestedItems
    IRequestableCollection.Clear()
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface INavigationNodeCollection : IQueryable<INavigationNode>, IQueryable, IDataModelCollection<INavigationNode>, IEnumerable<INavigationNode>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, ISupportModules<INavigationNodeCollection>

    Properties

    NavigationType

    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
    NavigationType

    Methods

    Add(NavigationNodeOptions)

    Method to add a Navigation Node

    Declaration
    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

    Declaration
    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

    Declaration
    void DeleteAllNodes()

    DeleteAllNodesAsync()

    Method to delete all navigation nodes from a specific navigation type

    Declaration
    Task DeleteAllNodesAsync()
    Returns
    Task

    DeleteAllNodesBatch()

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

    Declaration
    void DeleteAllNodesBatch()

    DeleteAllNodesBatch(Batch)

    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

    DeleteAllNodesBatchAsync()

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

    Declaration
    Task DeleteAllNodesBatchAsync()
    Returns
    Task

    DeleteAllNodesBatchAsync(Batch)

    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
    Task

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

    Method to select a specific Navigation Node

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

    The Id to search for

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

    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

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

    The Id to search for

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

    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

    Declaration
    void MoveNodeAfter(INavigationNode nodeToMove, INavigationNode nodeToMoveAfter)
    Parameters
    INavigationNode nodeToMove

    INavigationNode nodeToMoveAfter

    MoveNodeAfterAsync(INavigationNode, INavigationNode)

    Function to move a node after another navigation node

    Declaration
    Task MoveNodeAfterAsync(INavigationNode nodeToMove, INavigationNode nodeToMoveAfter)
    Parameters
    INavigationNode nodeToMove

    INavigationNode nodeToMoveAfter

    Returns
    Task

    Extension Methods

    QueryableExtensions.AsRequested<TSource>(IDataModelCollection<TSource>)
    RequestModuleExtensions.WithHeaders<TModel>(ISupportModules<TModel>, Dictionary<string, string>, Action<Dictionary<string, string>>)
    RequestModuleExtensions.WithResponseHeaders<TModel>(ISupportModules<TModel>, Action<Dictionary<string, string>>)
    QueryableExtensions.AsAsyncEnumerable<TSource>(IQueryable<TSource>)
    QueryableExtensions.AsBatchAsync<TSource>(IQueryable<TSource>)
    QueryableExtensions.AsBatchAsync<TSource>(IQueryable<TSource>, Batch)
    QueryableExtensions.AsBatch<TSource>(IQueryable<TSource>)
    QueryableExtensions.AsBatch<TSource>(IQueryable<TSource>, Batch)
    QueryableExtensions.FirstAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource, bool>>, CancellationToken)
    QueryableExtensions.FirstAsync<TSource>(IQueryable<TSource>, CancellationToken)
    QueryableExtensions.FirstOrDefaultAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource, bool>>, CancellationToken)
    QueryableExtensions.FirstOrDefaultAsync<TSource>(IQueryable<TSource>, CancellationToken)
    QueryableExtensions.ForEachAsync<T>(IQueryable<T>, Action<T>, CancellationToken)
    QueryableExtensions.QueryProperties<TResult>(IQueryable<TResult>, params Expression<Func<TResult, object>>[])
    QueryableExtensions.ToArrayAsync<TSource>(IQueryable<TSource>, CancellationToken)
    QueryableExtensions.ToDictionaryAsync<TSource, TKey>(IQueryable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>, CancellationToken)
    QueryableExtensions.ToDictionaryAsync<TSource, TKey>(IQueryable<TSource>, Func<TSource, TKey>, CancellationToken)
    QueryableExtensions.ToDictionaryAsync<TSource, TKey, TElement>(IQueryable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>, CancellationToken)
    QueryableExtensions.ToDictionaryAsync<TSource, TKey, TElement>(IQueryable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, CancellationToken)
    QueryableExtensions.ToListAsync<TSource>(IQueryable<TSource>, CancellationToken)
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer