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)

Syntax

'Declaration
Public Shared Function GetGroupDescendants ( _
    graphObjects As IEnumerable(Of GraphObject), _
    groupFilter As Predicate(Of GraphGroup), _
    nodeFilter As Predicate(Of GraphNode) _
) As IEnumerable(Of GraphNode)
public static IEnumerable<GraphNode> GetGroupDescendants(
    IEnumerable<GraphObject> graphObjects,
    Predicate<GraphGroup> groupFilter,
    Predicate<GraphNode> nodeFilter
)
public:
static IEnumerable<GraphNode^>^ GetGroupDescendants(
    IEnumerable<GraphObject^>^ graphObjects, 
    Predicate<GraphGroup^>^ groupFilter, 
    Predicate<GraphNode^>^ nodeFilter
)
static member GetGroupDescendants : 
        graphObjects:IEnumerable<GraphObject> * 
        groupFilter:Predicate<GraphGroup> * 
        nodeFilter:Predicate<GraphNode> -> IEnumerable<GraphNode> 
public static function GetGroupDescendants(
    graphObjects : IEnumerable<GraphObject>, 
    groupFilter : Predicate<GraphGroup>, 
    nodeFilter : Predicate<GraphNode>
) : IEnumerable<GraphNode>

Parameters

  • graphObjects
    Type: IEnumerable<GraphObject>

    The list of objects to flatten.

  • groupFilter
    Type: Predicate<GraphGroup>

    A predicate for filtering the groups you want to visit.

  • nodeFilter
    Type: Predicate<GraphNode>

    A predicate for filtering the descendant nodes you want included.

Return Value

Type: IEnumerable<GraphNode>
The flat list of all descendant nodes, including the nodes for the groups that were flattened.

.NET Framework Security

See Also

Reference

Graph Class

GetGroupDescendants Overload

Microsoft.VisualStudio.GraphModel Namespace