Search Results for

    Show / Hide Table of Contents
    View Source

    Class NavigationNode

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.Navigation
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class NavigationNode

    Constructors

    View Source

    NavigationNode(Guid, Guid, Int32)

    Declaration
    public NavigationNode(Guid key, Guid contentTypeKey, int sortOrder = 0)
    Parameters
    Type Name Description
    Guid key
    Guid contentTypeKey
    System.Int32 sortOrder

    Properties

    View Source

    Children

    Declaration
    public ISet<Guid> Children { get; }
    Property Value
    Type Description
    ISet<Guid>
    View Source

    ContentTypeKey

    Declaration
    public Guid ContentTypeKey { get; }
    Property Value
    Type Description
    Guid
    View Source

    Key

    Declaration
    public Guid Key { get; }
    Property Value
    Type Description
    Guid
    View Source

    Parent

    Declaration
    public Guid? Parent { get; }
    Property Value
    Type Description
    System.Nullable<Guid>
    View Source

    SortOrder

    Declaration
    public int SortOrder { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    View Source

    AddChild(ConcurrentDictionary<Guid, NavigationNode>, Guid)

    Declaration
    public void AddChild(ConcurrentDictionary<Guid, NavigationNode> navigationStructure, Guid childKey)
    Parameters
    Type Name Description
    System.Collections.Concurrent.ConcurrentDictionary<Guid, NavigationNode> navigationStructure
    Guid childKey
    View Source

    RemoveChild(ConcurrentDictionary<Guid, NavigationNode>, Guid)

    Declaration
    public void RemoveChild(ConcurrentDictionary<Guid, NavigationNode> navigationStructure, Guid childKey)
    Parameters
    Type Name Description
    System.Collections.Concurrent.ConcurrentDictionary<Guid, NavigationNode> navigationStructure
    Guid childKey
    View Source

    UpdateSortOrder(Int32)

    Declaration
    public void UpdateSortOrder(int newSortOrder)
    Parameters
    Type Name Description
    System.Int32 newSortOrder
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • NavigationNode(Guid, Guid, Int32)
    • Properties
      • Children
      • ContentTypeKey
      • Key
      • Parent
      • SortOrder
    • Methods
      • AddChild(ConcurrentDictionary<Guid, NavigationNode>, Guid)
      • RemoveChild(ConcurrentDictionary<Guid, NavigationNode>, Guid)
      • UpdateSortOrder(Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX