Graph::GetGroupDescendants Method (IEnumerable<GraphObject^>^, Predicate<GraphGroup^>^, Predicate<GraphNode^>^)

 

Gets a flat list of all the descendant nodes of the given list of graph objects where some of those objects could be groups, filtered to include only the nodes and groups that match the given predicates.

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public:
static IEnumerable<GraphNode^>^ GetGroupDescendants(
	IEnumerable<GraphObject^>^ graphObjects,
	Predicate<GraphGroup^>^ groupFilter,
	Predicate<GraphNode^>^ nodeFilter
)

Parameters

graphObjects
Type: System.Collections.Generic::IEnumerable<GraphObject^>^

The list of objects to flatten.

groupFilter
Type: System::Predicate<GraphGroup^>^

A predicate for filtering the groups you want to visit.

nodeFilter
Type: System::Predicate<GraphNode^>^

A predicate for filtering the descendant nodes you want included.

Return Value

Type: System.Collections.Generic::IEnumerable<GraphNode^>^

The flat list of all descendant nodes, including the nodes for the groups that were flattened.

Return to top
Show: