Graph.FindCommonAncestor(IEnumerable<GraphNode>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此方法查找给定集合中所有节点的公共上级。
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>
要搜索的节点集
返回
公用祖先组,如果没有,则为 null