A Sandcastle Documented Class Library

# MetricSet AddDynamicHierarchy Method

Adds a new dynamic hierarchy to the current instance.

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 AddDynamicHierarchy(
    	string name,
    	string description,
    	PlacementPosition placement
    )

    Public Function AddDynamicHierarchy (
    	name As String,
    	description As String,
    	placement As PlacementPosition
    ) As HierarchyUsage

    public:
    HierarchyUsage^ AddDynamicHierarchy(
    	String^ name,
    	String^ description,
    	PlacementPosition placement
    )

    member AddDynamicHierarchy :
            name : string *
            description : string *
            placement : PlacementPosition -> HierarchyUsage

#### Parameters

name
  Type: System
  String
  The dynamic hierarchy name.
description
  Type: System
  String
  The dynamic hierarchy description.
placement
  Type: Dundas.BI.Entities.MetricSets
  PlacementPosition
  The axis placement.

#### Return Value

Type: HierarchyUsage
The hierarchy usage element.
Exceptions

Exception | Condition
--- | ---
InvalidOperationException | The metric set is set for raw data retrieval, or there is no underlying cube, or the underlying cube has no hierarchies.

See Also

#### Reference

MetricSet Class
Dundas.BI.Entities.MetricSets Namespace