Share via


DepthFirstElementAndLinkWalker Class

Enables depth-first traversals of the model starting from a particular element or group of elements.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
Public Class DepthFirstElementAndLinkWalker _
    Inherits DepthFirstElementWalker
'Usage
Dim instance As DepthFirstElementAndLinkWalker
public class DepthFirstElementAndLinkWalker : DepthFirstElementWalker
public ref class DepthFirstElementAndLinkWalker : public DepthFirstElementWalker
public class DepthFirstElementAndLinkWalker extends DepthFirstElementWalker

Remarks

This class guarantees that elements and element links are visited in an interleaved fashion.

For example, A | B (link) C | D (link) E would be visited in the order: A, B, C, D, E, assuming that IncludeLinks is true.

DepthFirstElementWalker makes the depth-first guarantee only for elements, so any traversal containing the elements A, C, E in order would be valid.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.ElementWalker
    Microsoft.VisualStudio.Modeling.DepthFirstElementWalker
      Microsoft.VisualStudio.Modeling.DepthFirstElementAndLinkWalker

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DepthFirstElementAndLinkWalker Members

Microsoft.VisualStudio.Modeling Namespace