Skip to content

ERPConnect.BW.HierarchyLevelCollection

Namespace: ERPConnect.BW
Assembly: ERPConnectStandard20.dll

This collecton class represents a set of hierarchy objects

public class HierarchyLevelCollection : CollectionBase, IList, ICollection, IEnumerable

Inheritance

objectCollectionBaseHierarchyLevelCollection

Implements

IList, ICollection, IEnumerable

Inherited Members

CollectionBase.Clear(), CollectionBase.RemoveAt(int), CollectionBase.GetEnumerator(), CollectionBase.OnSet(int, object, object), CollectionBase.OnInsert(int, object), CollectionBase.OnClear(), CollectionBase.OnRemove(int, object), CollectionBase.OnValidate(object), CollectionBase.OnSetComplete(int, object, object), CollectionBase.OnInsertComplete(int, object), CollectionBase.OnClearComplete(), CollectionBase.OnRemoveComplete(int, object), CollectionBase.InnerList, CollectionBase.List, CollectionBase.Capacity, CollectionBase.Count, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

HierarchyLevelCollection()

Constructs a new HierarchyCollection object

public HierarchyLevelCollection()

Properties

this[int]

Returns an hierarchy object of a given position

public virtual HierarchyLevel this[int Index] { get; set; }

Property Value

HierarchyLevel

this[string]

Returns a HierarchyLevel object by its name

public virtual HierarchyLevel this[string UniqueName] { get; set; }

Property Value

HierarchyLevel

Methods

Add(HierarchyLevel)

Adds an existing Hierarchy object to the collection

public virtual void Add(HierarchyLevel NewParameter)

Parameters

NewParameter HierarchyLevel

The Hierarchy object to be added

Add(Hierarchy, string, string, string)

Adds a new Hierarchy Level object to the collection

public virtual HierarchyLevel Add(Hierarchy Hierarchy, string Name, string UniqueName, string Caption)

Parameters

Hierarchy Hierarchy

Reference to a Hierarchy Level object

Name string

Name of the hierarchy

UniqueName string

Unique name of the hierarchy

Caption string

A brief description text

Returns

HierarchyLevel

The hierarchy object that was created and added to the collection

Insert(int, HierarchyLevel)

Inserts an existing HierarchyLevel object to the collection

public virtual void Insert(int Index, HierarchyLevel NewParameter)

Parameters

Index int

Oridnal number of the position

NewParameter HierarchyLevel

The Hierarchy object to be added

TryGetValue(string, out HierarchyLevel)

public bool TryGetValue(string uniqueName, out HierarchyLevel value)

Parameters

uniqueName string

value HierarchyLevel

Returns

bool


Last update: January 4, 2024