A Sandcastle Documented Class Library

# MetricSet AddCountHierarchyMeasure Method (IHierarchy)

Add a new measure, based on the count or distinct count of a specified hierarchy members.

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 MeasureUsage AddCountHierarchyMeasure(
    	IHierarchy hierarchy
    )

    Public Function AddCountHierarchyMeasure (
    	hierarchy As IHierarchy
    ) As MeasureUsage

    public:
    MeasureUsage^ AddCountHierarchyMeasure(
    	IHierarchy^ hierarchy
    )

    member AddCountHierarchyMeasure :
            hierarchy : IHierarchy -> MeasureUsage

#### Parameters

hierarchy
  Type: Dundas.BI.Data.Metadata
  IHierarchy
  The hierarchy.

#### Return Value

Type: MeasureUsage
The measure usage.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | hierarchy is .
ArgumentException | hierarchy does not belong to the underlying IAnalysisStructure.
InvalidOperationException | The current operation is not supported when the metric set returns raw data.

See Also

#### Reference

MetricSet Class
AddCountHierarchyMeasure Overload
Dundas.BI.Entities.MetricSets Namespace