다음을 통해 공유


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

Return Value

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

.NET Framework Security

See Also

Reference

GraphLink Class

Microsoft.VisualStudio.GraphModel Namespace