IUserHierarchyServiceReplaceLevel 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 (24.4.0.1000)
Syntax
UserHierarchyLevel ReplaceLevel(
	UserHierarchy hierarchy,
	string levelUniqueName,
	Guid entityId
)

Parameters

hierarchy
Type: Dundas.BI.Entities.UserHierarchiesUserHierarchy
The hierarchy.
levelUniqueName
Type: SystemString
The unique name of the level.
entityId
Type: SystemGuid
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 .
ArgumentExceptionThe was 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