A Sandcastle Documented Class Library

# MeasureSorting SortByHierarchy Method (Boolean, SortDirection, IHierarchyLevel, IList MemberValue )

Sorts the measure values for the specified hierarchy level.

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

    public void SortByHierarchy(
    	bool ignoreHierarchyGroupings,
    	SortDirection direction,
    	IHierarchyLevel hierarchyLevel,
    	IList<MemberValue> oppositeAxisMembers
    )

    Public Sub SortByHierarchy (
    	ignoreHierarchyGroupings As Boolean,
    	direction As SortDirection,
    	hierarchyLevel As IHierarchyLevel,
    	oppositeAxisMembers As IList(Of MemberValue)
    )

    public:
    void SortByHierarchy(
    	bool ignoreHierarchyGroupings,
    	SortDirection direction,
    	IHierarchyLevel^ hierarchyLevel,
    	IList<MemberValue^>^ oppositeAxisMembers
    )

    member SortByHierarchy :
            ignoreHierarchyGroupings : bool *
            direction : SortDirection *
            hierarchyLevel : IHierarchyLevel *
            oppositeAxisMembers : IList<MemberValue> -> unit

#### Parameters

ignoreHierarchyGroupings
  Type: System
  Boolean
  Value the specifies if current and higher hierarchy level groupings should be ignored when sorting.
direction
  Type: Dundas.BI
  SortDirection
  The sort direction.
hierarchyLevel
  Type: Dundas.BI.Data.Metadata
  IHierarchyLevel
  The hierarchy level.
oppositeAxisMembers
  Type: System.Collections.Generic
  IList
  MemberValue
  The column hierarchy members.

Exceptions

Exception | Condition
--- | ---
ArgumentNullException | hierarchyLevel is .
ArgumentException | direction is invalid or hierarchyLevel is not an axis hierarchy level or oppositeAxisMembers is , empty, or not corresponding to the existing opposite axis hierarchies.

See Also

#### Reference

MeasureSorting Class
SortByHierarchy Overload
Dundas.BI.Data.Metadata Namespace