A Sandcastle Documented Class Library

# IHierarchy MemberQuery Method (MemberRetrievalOptions, ICollection MemberValue , Nullable Int32 , MemberValue)

Enumerates hierarchy members. This is a flat list of members potentially on different hierarchy levels.

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

    IEnumerable<IHierarchyMember> MemberQuery(
    	MemberRetrievalOptions options,
    	ICollection<MemberValue> shownMembers,
    	int? lastVisibleLevel,
    	MemberValue firstVisibleParentMember
    )

    Function MemberQuery (
    	options As MemberRetrievalOptions,
    	shownMembers As ICollection(Of MemberValue),
    	lastVisibleLevel As Integer?,
    	firstVisibleParentMember As MemberValue
    ) As IEnumerable(Of IHierarchyMember)

    IEnumerable<IHierarchyMember^>^ MemberQuery(
    	MemberRetrievalOptions^ options,
    	ICollection<MemberValue^>^ shownMembers,
    	Nullable<int> lastVisibleLevel,
    	MemberValue^ firstVisibleParentMember
    )

    abstract MemberQuery :
            options : MemberRetrievalOptions *
            shownMembers : ICollection<MemberValue> *
            lastVisibleLevel : Nullable<int> *
            firstVisibleParentMember : MemberValue -> IEnumerable<IHierarchyMember>

#### Parameters

options
  Type: Dundas.BI.Data.MemberRetrieval
  MemberRetrievalOptions
  The paging, filtering, and sorting options.
shownMembers
  Type: System.Collections.Generic
  ICollection
  MemberValue
  The shown members. If not
  , then only the members in the collection, its parents, or its children can be included.
lastVisibleLevel
  Type: System
  Nullable
  Int32
  The last visible level. Pass
  to return members on all levels.
firstVisibleParentMember
  Type: Dundas.BI.Data.Parameters
  MemberValue
  The first visible parent member. If not
  , only the specified member and its children can be included.

#### Return Value

Type: IEnumerable
IHierarchyMember
A list of hierarchy members.
Exceptions

Exception | Condition
--- | ---
ArgumentOutOfRangeException | The doesn't belong to this hierarchy.

Remarks
The result never includes "All" and "Unknown" members.
See Also

#### Reference

IHierarchy Interface
MemberQuery Overload
Dundas.BI.Data.Metadata Namespace