DepthFirstElementWalker.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 Overridable Function GetRelatedElements ( _
element As ModelElement _
) As IList(Of ModelElement)
protected virtual IList<ModelElement> GetRelatedElements(
ModelElement element
)
protected:
virtual IList<ModelElement^>^ GetRelatedElements(
ModelElement^ element
)
abstract GetRelatedElements :
element:ModelElement -> IList<ModelElement>
override GetRelatedElements :
element:ModelElement -> IList<ModelElement>
protected function GetRelatedElements(
element : ModelElement
) : IList<ModelElement>
Parameters
element
Type: Microsoft.VisualStudio.Modeling.ModelElementModelElement to query for its related elements
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.