GraphLink.FindRelatedLinks Method

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

Return Value

Type: IEnumerable<GraphLink>
The links accepted by the traversal, including the original link.

.NET Framework Security

See Also

Reference

GraphLink Class

Microsoft.VisualStudio.GraphModel Namespace