Open this page in the API Guide

IUserHierarchyService.ReplaceLevel Method

Replaces the specified level by the different one based on a specified native structure.

Namespace:  Dundas.BI.Entities.UserHierarchies
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
UserHierarchyLevel ReplaceLevel(
	UserHierarchy hierarchy,
	string levelUniqueName,
	Guid entityId
)

Parameters

hierarchy
Type: Dundas.BI.Entities.UserHierarchies.UserHierarchy
The hierarchy.
levelUniqueName
Type: System.String
The unique name of the level.
entityId
Type: System.Guid
ID of the data source entity.

Return Value

Type: UserHierarchyLevel
The level.
Exceptions
ExceptionCondition
InvalidOperationException

The entity has never been saved before.

-or-

The entity is not checked out to the caller.

InvalidSessionExceptionThe caller context is not associated with a valid session.
ArgumentNullExceptionhierarchy is null.
ArgumentExceptionThe was null or empty.
NotSupportedExceptionThe data structure with the specified ID cannot be used as a data source for the user hierarchy.
NotFoundException

The level with the specified unique name was not found.

-or-

The data structure with the specified ID doesn't exist or cannot be discovered.

See Also