共用方式為


GraphLinkCollection.Get 方法 (GraphNodeId, GraphNodeId, Int32)

取得具有指定來源和目標和多個連結索引的連結。

命名空間:  Microsoft.VisualStudio.GraphModel
組件:  Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.dll 中)

語法

'宣告
Public Function Get ( _
    sourceId As GraphNodeId, _
    targetId As GraphNodeId, _
    index As Integer _
) As GraphLink
public GraphLink Get(
    GraphNodeId sourceId,
    GraphNodeId targetId,
    int index
)
public:
GraphLink^ Get(
    GraphNodeId^ sourceId, 
    GraphNodeId^ targetId, 
    int index
)
member Get : 
        sourceId:GraphNodeId * 
        targetId:GraphNodeId * 
        index:int -> GraphLink 
public function Get(
    sourceId : GraphNodeId, 
    targetId : GraphNodeId, 
    index : int
) : GraphLink

參數

傳回值

型別:Microsoft.VisualStudio.GraphModel.GraphLink
找到的連結。否則,為 null。

.NET Framework 安全性

請參閱

參考

GraphLinkCollection 類別

Get 多載

Microsoft.VisualStudio.GraphModel 命名空間