查找所有节点的公共上级在给定集合中。
命名空间: 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
参数
- nodes
类型:System.Collections.Generic.IEnumerable<GraphNode>
设置节点搜索。
返回值
类型:Microsoft.VisualStudio.GraphModel.GraphGroup
公用的上级组,则为 null 有无。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。