Returns the generation level of a given member in the dimension hierarchy. Generation levels are ordered incrementally from the dimension name (level 1) down to the leaf members.
If a member is in multiple branches of the hierarchy, GetItemGeneration calculates the generation level within the branch that contains the parent identified by the member's DefaultParent attribute. For example, in the following diagram the NewYork entity is in two branches of the Entity dimension. If the NewYork’s DefaultParent is UnitedStates; GetItemGeneration returns 4; if the DefaultParent is MainDivision, GetItemGeneration returns 3:
<IHsvTreeInfo>.GetItemGeneration lMemberID, plGeneration