A Sandcastle Documented Class Library

# IDataCubeService CheckUserHierarchyCompatibility Method

Checks if a connector element can be promoted to the specified user hierarchy.

Namespace: Dundas.BI.Entities.DataCubes
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    bool CheckUserHierarchyCompatibility(
    	ConnectorElement connectorElement,
    	Guid hierarchyId,
    	string hierarchyUniqueName,
    	string hierarchyLevel,
    	ICollection<KeyValuePair<string, Guid>> keyMappings
    )

    Function CheckUserHierarchyCompatibility (
    	connectorElement As ConnectorElement,
    	hierarchyId As Guid,
    	hierarchyUniqueName As String,
    	hierarchyLevel As String,
    	keyMappings As ICollection(Of KeyValuePair(Of String, Guid))
    ) As Boolean

    bool CheckUserHierarchyCompatibility(
    	ConnectorElement^ connectorElement,
    	Guid hierarchyId,
    	String^ hierarchyUniqueName,
    	String^ hierarchyLevel,
    	ICollection<KeyValuePair<String^, Guid>>^ keyMappings
    )

    abstract CheckUserHierarchyCompatibility :
            connectorElement : ConnectorElement *
            hierarchyId : Guid *
            hierarchyUniqueName : string *
            hierarchyLevel : string *
            keyMappings : ICollection<KeyValuePair<string, Guid>> -> bool

#### Parameters

connectorElement
  Type: Dundas.BI.Data.Transforms
  ConnectorElement
  The data cube connector element.
hierarchyId
  Type: System
  Guid
  The hierarchy identifier.
hierarchyUniqueName
  Type: System
  String
  The hierarchy unique name.
hierarchyLevel
  Type: System
  String
  Unique name of the hierarchy level.
keyMappings
  Type: System.Collections.Generic
  ICollection
  KeyValuePair
  String, Guid
  The list of key-value pairs of hierarchy key element name and connector element Guid.

#### Return Value

Type: Boolean
A value indicating whether or not the promotion is compatible.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | connectorElement is .
ArgumentException | hierarchyId is Empty or connectorElement is not a data cube output element or hierarchyLevel is or Empty.
NotFoundException | The hierarchy with the specified hierarchyId does not exist.
NotFoundException | The hierarchy level with the specified hierarchyLevel unique name does not exist.
NotFoundException | An Element with an Id of one of the Guids in keyMappings does not exist.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IDataCubeService Interface
Dundas.BI.Entities.DataCubes Namespace