Compartir a través de


DepthFirstElementAndLinkWalker.GetRelatedElements Method

Get the list of immediately neighboring elements that should be visited, in the order in which they should be visited.

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

Syntax

'Declaration
Protected Overrides Function GetRelatedElements ( _
    element As ModelElement _
) As IList(Of ModelElement)
protected override IList<ModelElement> GetRelatedElements(
    ModelElement element
)
protected:
virtual IList<ModelElement^>^ GetRelatedElements(
    ModelElement^ element
) override
abstract GetRelatedElements : 
        element:ModelElement -> IList<ModelElement> 
override GetRelatedElements : 
        element:ModelElement -> IList<ModelElement> 
protected override function GetRelatedElements(
    element : ModelElement
) : IList<ModelElement>

Parameters

Return Value

Type: System.Collections.Generic.IList<ModelElement>
The list of related elements.

Remarks

Override this to vary the order of visitation. The default implementation includes all linked model elements which are not filtered out, followed by all links which are not filtered out.

.NET Framework Security

See Also

Reference

DepthFirstElementAndLinkWalker Class

Microsoft.VisualStudio.Modeling Namespace