Loop through workitems

Topics: CAB & Smart Client Software Factory
Oct 18, 2005 at 7:44 AM
originally posted by: gluque

Hi all !

How can I loop through workitems from the rootworkitem to the last child workitem


rootworkitem
|
FirtsChildWorkItem
|
ChildChildWorkItem

I try to use GetEnumerator.MoveNext but seems I'm not using well

an advice will be apreciate


Thanks in advance

Gerardo Luque (From Mexico) :)
Oct 18, 2005 at 9:07 AM
originally posted by: PProvost

You should be able to loop recursively through the WorkItems collection of each work item starting at the root and working your way down.

The only catch is that this heirarchy changes dynamically and dependning on when you look, you may not find anything. :)