共用方式為


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
共同祖系群組則為,如果沒有則為。

.NET Framework 安全性

請參閱

參考

Graph 類別

Microsoft.VisualStudio.GraphModel 命名空間