Open this page in the API Guide

DataCube.SetupHierarchy Method (String, 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 (25.1.0.1000)
Syntax
public IHierarchy SetupHierarchy(
	string nativeElementName,
	UserHierarchyLevel hierarchyLevel,
	IEnumerable<ConnectorElement> linkElements
)

Parameters

nativeElementName
Type: System.String
The native element name.
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
ExceptionCondition
ArgumentNullExceptionhierarchyLevel is null.
ArgumentException No output element with the nativeElementName native name was found or linkElements is null or empty.
See Also