IElementVisitor.Visit Method (ElementWalker, ModelElement)


Represents a visiting function, defined by classes that implement the IElementVisitor interface.

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

bool Visit(
	ElementWalker walker,
	ModelElement element


Type: Microsoft.VisualStudio.Modeling.ElementWalker

The walker traversing the model.

Type: Microsoft.VisualStudio.Modeling.ModelElement

The model element being visited.

Return Value

Type: System.Boolean

true if the traversal is not complete and should continue; otherwise, false.

The ElementWalker object will continue to process as long as the return value is true. It will stop traversal early if the return value of this function is false.

Return to top