GraphLinkCollection.Get Method (GraphNodeId, GraphNodeId, Int32)

Gets the link with the specified source and target and multi-link index

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
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

Parameters

  • index
    Type: Int32

    The multi-link index

Return Value

Type: Microsoft.VisualStudio.GraphModel.GraphLink
The Link that was found. Otherwise, null

.NET Framework Security

See Also

Reference

GraphLinkCollection Class

Get Overload

Microsoft.VisualStudio.GraphModel Namespace