ERPConnect.BW.HierarchyCollection
Namespace: ERPConnect.BW
Assembly: ERPConnectStandard20.dll
This collecton class represents a set of hierarchy objects
Inheritance
object ← CollectionBase ← HierarchyCollection
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
HierarchyCollection()
Constructs a new HierarchyCollection object
Properties
this[int]
Returns an hierarchy object of a given position
Property Value
this[string]
Returns a Hierarchy object by its name
Property Value
Methods
Add(Hierarchy)
Adds an existing Hierarchy object to the collection
Parameters
NewParameter Hierarchy
The Hierarchy object to be added
Add(Dimension, string, string, string)
Adds a new Hierarchy object to the collection
Parameters
Dimension Dimension
Reference to a Dimension object
Name string
Name of the hierarchy
UniqueName string
Unique name of the hierarchy
Caption string
A brief description text
Returns
The hierarchy object that was created and added to the collection
ContainsHierarchy(string)
Detects if the hierarchy with a given name is contained in the collection
Parameters
HierarchyName string
The name of the hierarchy to be looked up for
Returns
true / false depending if the hierarchy is already added to the collection
Insert(int, Hierarchy)
Inserts an existing Hierarchy object to the collection
Parameters
Index int
Oridnal number of the position
NewParameter Hierarchy
The Hierarchy object to be added
TryGetValue(string, out Hierarchy)
Parameters
uniqueName string
value Hierarchy