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 (8.0.2.1001)
SyntaxUserHierarchyLevel ReplaceLevel(
UserHierarchy hierarchy,
string levelUniqueName,
Guid entityId
)
Function ReplaceLevel (
hierarchy As UserHierarchy,
levelUniqueName As String,
entityId As Guid
) As UserHierarchyLevel
UserHierarchyLevel^ ReplaceLevel(
UserHierarchy^ hierarchy,
String^ levelUniqueName,
Guid entityId
)
abstract ReplaceLevel :
hierarchy : UserHierarchy *
levelUniqueName : string *
entityId : Guid -> UserHierarchyLevel
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:
UserHierarchyLevelThe level.
Exceptions| Exception | Condition |
|---|
| InvalidOperationException | The entity has never been saved before. -or- The entity is not checked out to the caller. |
| InvalidSessionException | The caller context is not associated with a valid session. |
| ArgumentNullException | hierarchy is . |
| ArgumentException | The was or empty. |
| NotSupportedException | The 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