A Sandcastle Documented Class Library

# FormulaMetricSet AddHierarchy Method

Adds a new hierarchy and automatically links any corresponding parameters of the dependency with the specified name to the current usage element parameters.

Namespace: Dundas.BI.Entities.MetricSets
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public HierarchyUsage AddHierarchy(
    	HierarchyUsage dependencyHierarchy,
    	MetricSetUsage usage
    )

    Public Function AddHierarchy (
    	dependencyHierarchy As HierarchyUsage,
    	usage As MetricSetUsage
    ) As HierarchyUsage

    public:
    HierarchyUsage^ AddHierarchy(
    	HierarchyUsage^ dependencyHierarchy,
    	MetricSetUsage^ usage
    )

    member AddHierarchy :
            dependencyHierarchy : HierarchyUsage *
            usage : MetricSetUsage -> HierarchyUsage

#### Parameters

dependencyHierarchy
  Type: Dundas.BI.Entities.MetricSets
  HierarchyUsage
  The dependency hierarchy.
usage
  Type: Dundas.BI.Entities.MetricSets
  MetricSetUsage
  The dependency usage the hierarchy belongs to.

#### Return Value

Type: HierarchyUsage
The hierarchy usage element.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | dependencyHierarchy or usage is .
ArgumentException | dependencyHierarchy is invalid as no dependency metric set has such a column hierarchy.

See Also

#### Reference

FormulaMetricSet Class
Dundas.BI.Entities.MetricSets Namespace