共用方式為


ElementWalker.DoTraverse Method

Traverse the model starting at the specified starting element.

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

Syntax

'宣告
Public MustOverride Function DoTraverse ( _
    rootElement As ModelElement _
) As Boolean
public abstract bool DoTraverse(
    ModelElement rootElement
)
public:
virtual bool DoTraverse(
    ModelElement^ rootElement
) abstract
abstract DoTraverse : 
        rootElement:ModelElement -> bool 
public abstract function DoTraverse(
    rootElement : ModelElement
) : boolean

Parameters

Return Value

Type: System.Boolean
Returns true if the traversal completed fully. Returns false if the traversal was terminated prematurely by the visitor

.NET Framework Security

See Also

Reference

ElementWalker Class

Microsoft.VisualStudio.Modeling Namespace