A Sandcastle Documented Class Library

# UserHierarchy MemberQuery Method (MemberRetrievalOptions, IHierarchyMember, Nullable Int32 )

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

Namespace: Dundas.BI.Entities.UserHierarchies
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 IEnumerable<IHierarchyMember> MemberQuery(
    	MemberRetrievalOptions options,
    	IHierarchyMember parentMember,
    	int? lastVisibleLevel
    )

    Public Function MemberQuery (
    	options As MemberRetrievalOptions,
    	parentMember As IHierarchyMember,
    	lastVisibleLevel As Integer?
    ) As IEnumerable(Of IHierarchyMember)

    public:
    virtual IEnumerable<IHierarchyMember^>^ MemberQuery(
    	MemberRetrievalOptions^ options,
    	IHierarchyMember^ parentMember,
    	Nullable<int> lastVisibleLevel
    ) sealed

    abstract MemberQuery :
            options : MemberRetrievalOptions *
            parentMember : IHierarchyMember *
            lastVisibleLevel : Nullable<int> -> IEnumerable<IHierarchyMember>
    override MemberQuery :
            options : MemberRetrievalOptions *
            parentMember : IHierarchyMember *
            lastVisibleLevel : Nullable<int> -> IEnumerable<IHierarchyMember>

#### Parameters

options
  Type: Dundas.BI.Data.MemberRetrieval
  MemberRetrievalOptions
  The paging, filtering, and sorting options.
parentMember
  Type: Dundas.BI.Data.Metadata
  IHierarchyMember
  The parent member. Use
  to enumerate all members.
lastVisibleLevel
  Type: System
  Nullable
  Int32
  The last visible level. Pass
  to return members on all levels.

#### Return Value

Type: IEnumerable
IHierarchyMember
A list of hierarchy members.

#### Implements

IHierarchy
MemberQuery(MemberRetrievalOptions, IHierarchyMember, Nullable
Int32
)
Exceptions

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

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

#### Reference

UserHierarchy Class
MemberQuery Overload
Dundas.BI.Entities.UserHierarchies Namespace