FormulaMetricSetAddHierarchy 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 (24.3.0.1000)
Syntax
public HierarchyUsage AddHierarchy(
	HierarchyUsage dependencyHierarchy,
	MetricSetUsage usage
)

Parameters

dependencyHierarchy
Type: Dundas.BI.Entities.MetricSetsHierarchyUsage
The dependency hierarchy.
usage
Type: Dundas.BI.Entities.MetricSetsMetricSetUsage
The dependency usage the hierarchy belongs to.

Return Value

Type: HierarchyUsage
The hierarchy usage element.
Exceptions
ExceptionCondition
ArgumentNullExceptiondependencyHierarchy or usage is .
ArgumentExceptiondependencyHierarchy is invalid as no dependency metric set has such a column hierarchy.
See Also