GraphLink.FindRelatedLinks Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Finds the links that match the acceptLink predicate. They are found by doing a breadth first search along links matching the traverseLink predicate, in the Source or Target direction designated by the searchDirection.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function FindRelatedLinks ( _
searchDirection As GraphSearchDirection, _
traverseLink As Predicate(Of GraphLink), _
acceptLink As Predicate(Of GraphLink) _
) As IEnumerable(Of GraphLink)
public IEnumerable<GraphLink> FindRelatedLinks(
GraphSearchDirection searchDirection,
Predicate<GraphLink> traverseLink,
Predicate<GraphLink> acceptLink
)
public:
IEnumerable<GraphLink^>^ FindRelatedLinks(
GraphSearchDirection searchDirection,
Predicate<GraphLink^>^ traverseLink,
Predicate<GraphLink^>^ acceptLink
)
member FindRelatedLinks :
searchDirection:GraphSearchDirection *
traverseLink:Predicate<GraphLink> *
acceptLink:Predicate<GraphLink> -> IEnumerable<GraphLink>
public function FindRelatedLinks(
searchDirection : GraphSearchDirection,
traverseLink : Predicate<GraphLink>,
acceptLink : Predicate<GraphLink>
) : IEnumerable<GraphLink>
Parameters
- searchDirection
Type: Microsoft.VisualStudio.GraphModel.GraphSearchDirection
- traverseLink
Type: System.Predicate<GraphLink>
- acceptLink
Type: System.Predicate<GraphLink>
Return Value
Type: System.Collections.Generic.IEnumerable<GraphLink>
The links accepted by the traversal, including the original link.
.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.