View Source
Class NavigationNode
Inheritance
System.Object
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
View Source
Key
Declaration
Property Value
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 |
|