IElementVisitor.Visit Method

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

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

Syntax

'Declaration
Function Visit ( _
    walker As ElementWalker, _
    element As ModelElement _
) As Boolean
bool Visit(
    ElementWalker walker,
    ModelElement element
)
bool Visit(
    ElementWalker^ walker, 
    ModelElement^ element
)
abstract Visit : 
        walker:ElementWalker * 
        element:ModelElement -> bool
function Visit(
    walker : ElementWalker, 
    element : ModelElement
) : boolean

Parameters

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

IElementVisitor Interface

Microsoft.VisualStudio.Modeling Namespace