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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
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
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
ModelElement 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.