Open this page in the API Guide

IHierarchyService.GetHierarchy Method (Guid, String)

Gets the hierarchy using the specified parent entity ID and the hierarchy unique name.

Namespace:  Dundas.BI.Data.Metadata
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
IHierarchy GetHierarchy(
	Guid entityId,
	string uniqueName
)

Parameters

entityId
Type: System.Guid
The parent entity ID.
uniqueName
Type: System.String
The unique name of the hierarchy.

Return Value

Type: IHierarchy
The requested hierarchy object.
Exceptions
ExceptionCondition
ArgumentNullExceptionuniqueName is null.
ArgumentExceptionentityId is Empty or doesn't support hierarchies or uniqueName is empty or null.
NotFoundException The hierarchy with the specified name and parent does not exist or the entity with the specified entityId does not exist.
NoPrivilegeExceptionThe caller does not have permission to access the entity.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also