Graph.FindCommonAncestor(IEnumerable<GraphNode>) 方法

定义

此方法查找给定集合中所有节点的公共上级。

public:
 static Microsoft::VisualStudio::GraphModel::GraphGroup ^ FindCommonAncestor(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ nodes);
public static Microsoft.VisualStudio.GraphModel.GraphGroup FindCommonAncestor (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> nodes);
static member FindCommonAncestor : seq<Microsoft.VisualStudio.GraphModel.GraphNode> -> Microsoft.VisualStudio.GraphModel.GraphGroup
Public Shared Function FindCommonAncestor (nodes As IEnumerable(Of GraphNode)) As GraphGroup

参数

nodes
IEnumerable<GraphNode>

要搜索的节点集

返回

GraphGroup

公用祖先组,如果没有,则为 null

适用于