A Sandcastle Documented Class Library

# DataCube SetupHierarchy Method (String, ITimeHierarchyLevel)

Setups a IHierarchy object by linking an existing time hierarchy level to a ConnectorElement with the specified native element name.

Namespace: Dundas.BI.Entities.DataCubes
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 IHierarchy SetupHierarchy(
    	string nativeElementName,
    	ITimeHierarchyLevel timeLevel
    )

    Public Function SetupHierarchy (
    	nativeElementName As String,
    	timeLevel As ITimeHierarchyLevel
    ) As IHierarchy

    public:
    IHierarchy^ SetupHierarchy(
    	String^ nativeElementName,
    	ITimeHierarchyLevel^ timeLevel
    )

    member SetupHierarchy :
            nativeElementName : string *
            timeLevel : ITimeHierarchyLevel -> IHierarchy

#### Parameters

nativeElementName
  Type: System
  String
  The native element name.
timeLevel
  Type: Dundas.BI.Data.Metadata
  ITimeHierarchyLevel
  The time hierarchy level.

#### Return Value

Type: IHierarchy
The linked hierarchy.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | timeLevel is .
ArgumentException | No output element with the nativeElementName native name and a valid data type was found.

See Also

#### Reference

DataCube Class
SetupHierarchy Overload
Dundas.BI.Entities.DataCubes Namespace