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
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.