GraphLink.FindRelatedLinks Method

Definition

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.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphLink ^> ^ FindRelatedLinks(Microsoft::VisualStudio::GraphModel::GraphSearchDirection searchDirection, Predicate<Microsoft::VisualStudio::GraphModel::GraphLink ^> ^ traverseLink, Predicate<Microsoft::VisualStudio::GraphModel::GraphLink ^> ^ acceptLink);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphLink> FindRelatedLinks (Microsoft.VisualStudio.GraphModel.GraphSearchDirection searchDirection, Predicate<Microsoft.VisualStudio.GraphModel.GraphLink> traverseLink, Predicate<Microsoft.VisualStudio.GraphModel.GraphLink> acceptLink);
member this.FindRelatedLinks : Microsoft.VisualStudio.GraphModel.GraphSearchDirection * Predicate<Microsoft.VisualStudio.GraphModel.GraphLink> * Predicate<Microsoft.VisualStudio.GraphModel.GraphLink> -> seq<Microsoft.VisualStudio.GraphModel.GraphLink>
Public Function FindRelatedLinks (searchDirection As GraphSearchDirection, traverseLink As Predicate(Of GraphLink), acceptLink As Predicate(Of GraphLink)) As IEnumerable(Of GraphLink)

Parameters

searchDirection
GraphSearchDirection
traverseLink
Predicate<GraphLink>
acceptLink
Predicate<GraphLink>

Returns

The links accepted by the traversal. Including the original link.

Applies to