Graph.FindCommonAncestor 方法

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

命名空间:  Microsoft.VisualStudio.GraphModel
程序集:  Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)

语法

声明
Public Shared Function FindCommonAncestor ( _
    nodes As IEnumerable(Of GraphNode) _
) As GraphGroup
public static GraphGroup FindCommonAncestor(
    IEnumerable<GraphNode> nodes
)
public:
static GraphGroup^ FindCommonAncestor(
    IEnumerable<GraphNode^>^ nodes
)
static member FindCommonAncestor : 
        nodes:IEnumerable<GraphNode> -> GraphGroup 
public static function FindCommonAncestor(
    nodes : IEnumerable<GraphNode>
) : GraphGroup

参数

返回值

类型:Microsoft.VisualStudio.GraphModel.GraphGroup
公用的上级组,则为 null 有无。

.NET Framework 安全性

请参见

参考

Graph 类

Microsoft.VisualStudio.GraphModel 命名空间