GraphLink.FindRelatedLinks Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
The links accepted by the traversal. Including the original link.