Partager via


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

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Return Value

Type: System.Collections.Generic.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