A Sandcastle Documented Class Library

# DataCube SetupHierarchy Method (ConnectorElement, UserHierarchyLevel, IEnumerable ConnectorElement )

Setups a IHierarchy object by linking an existing relational hierarchy to the specified ConnectorElement.

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(
    	ConnectorElement connectorElement,
    	UserHierarchyLevel hierarchyLevel,
    	IEnumerable<ConnectorElement> linkElements
    )

    Public Function SetupHierarchy (
    	connectorElement As ConnectorElement,
    	hierarchyLevel As UserHierarchyLevel,
    	linkElements As IEnumerable(Of ConnectorElement)
    ) As IHierarchy

    public:
    IHierarchy^ SetupHierarchy(
    	ConnectorElement^ connectorElement,
    	UserHierarchyLevel^ hierarchyLevel,
    	IEnumerable<ConnectorElement^>^ linkElements
    )

    member SetupHierarchy :
            connectorElement : ConnectorElement *
            hierarchyLevel : UserHierarchyLevel *
            linkElements : IEnumerable<ConnectorElement> -> IHierarchy

#### Parameters

connectorElement
  Type: Dundas.BI.Data.Transforms
  ConnectorElement
  The connector element to be used to generate the data cube hierarchy information.
hierarchyLevel
  Type: Dundas.BI.Entities.UserHierarchies
  UserHierarchyLevel
  The hierarchy level.
linkElements
  Type: System.Collections.Generic
  IEnumerable
  ConnectorElement
  The connector elements to be used for defining a composite relationship.

#### Return Value

Type: IHierarchy
The linked hierarchy.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | connectorElement or hierarchyLevel is .
NotSupportedException | The specified hierarchy cannot be used in this data cube.
ArgumentException | connectorElement does not belong the output element collection or linkElements is or empty.

See Also

#### Reference

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