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
參數
- nodes
型別:System.Collections.Generic.IEnumerable<GraphNode>
要搜尋的節點集。
傳回值
型別:Microsoft.VisualStudio.GraphModel.GraphGroup
共同祖系群組則為,如果沒有則為。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。