Compartilhar via


GraphLinkCollection.Get Method

Definition

Overloads

Get(String, String, Int32)

Gets the link with the specified source using node Id as strings and a multilink index

Get(GraphNodeId, GraphNodeId, Int32)

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

Get(GraphNode, GraphNode, Int32)

Gets the link with the specified source

Get(GraphNodeId, GraphNodeId)

Gets the link with the specified source using GraphNodeId

Get(GraphNode, GraphNode)

Gets the link with the specified source

Get(String, String)

Gets the link with the specified source using node Id as strings

Get(String, String, Int32)

Gets the link with the specified source using node Id as strings and a multilink index

public:
 Microsoft::VisualStudio::GraphModel::GraphLink ^ Get(System::String ^ sourceId, System::String ^ targetId, int index);
public Microsoft.VisualStudio.GraphModel.GraphLink Get (string sourceId, string targetId, int index);
member this.Get : string * string * int -> Microsoft.VisualStudio.GraphModel.GraphLink
Public Function Get (sourceId As String, targetId As String, index As Integer) As GraphLink

Parameters

sourceId
String

The source node

targetId
String

The target node

index
Int32

Multilink index

Returns

The Link that was found, otherwise null

Applies to

Get(GraphNodeId, GraphNodeId, Int32)

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

public:
 Microsoft::VisualStudio::GraphModel::GraphLink ^ Get(Microsoft::VisualStudio::GraphModel::GraphNodeId ^ sourceId, Microsoft::VisualStudio::GraphModel::GraphNodeId ^ targetId, int index);
public Microsoft.VisualStudio.GraphModel.GraphLink Get (Microsoft.VisualStudio.GraphModel.GraphNodeId sourceId, Microsoft.VisualStudio.GraphModel.GraphNodeId targetId, int index);
member this.Get : Microsoft.VisualStudio.GraphModel.GraphNodeId * Microsoft.VisualStudio.GraphModel.GraphNodeId * int -> Microsoft.VisualStudio.GraphModel.GraphLink
Public Function Get (sourceId As GraphNodeId, targetId As GraphNodeId, index As Integer) As GraphLink

Parameters

sourceId
GraphNodeId

The source node

targetId
GraphNodeId

The target node

index
Int32

The multi-link index

Returns

The Link that was found, otherwise null

Applies to

Get(GraphNode, GraphNode, Int32)

Gets the link with the specified source

public:
 Microsoft::VisualStudio::GraphModel::GraphLink ^ Get(Microsoft::VisualStudio::GraphModel::GraphNode ^ source, Microsoft::VisualStudio::GraphModel::GraphNode ^ target, int index);
public Microsoft.VisualStudio.GraphModel.GraphLink Get (Microsoft.VisualStudio.GraphModel.GraphNode source, Microsoft.VisualStudio.GraphModel.GraphNode target, int index);
member this.Get : Microsoft.VisualStudio.GraphModel.GraphNode * Microsoft.VisualStudio.GraphModel.GraphNode * int -> Microsoft.VisualStudio.GraphModel.GraphLink
Public Function Get (source As GraphNode, target As GraphNode, index As Integer) As GraphLink

Parameters

source
GraphNode

The source node

target
GraphNode

The target node

index
Int32

The multi-link index

Returns

The Link that was found, otherwise null

Applies to

Get(GraphNodeId, GraphNodeId)

Gets the link with the specified source using GraphNodeId

public:
 Microsoft::VisualStudio::GraphModel::GraphLink ^ Get(Microsoft::VisualStudio::GraphModel::GraphNodeId ^ sourceId, Microsoft::VisualStudio::GraphModel::GraphNodeId ^ targetId);
public Microsoft.VisualStudio.GraphModel.GraphLink Get (Microsoft.VisualStudio.GraphModel.GraphNodeId sourceId, Microsoft.VisualStudio.GraphModel.GraphNodeId targetId);
member this.Get : Microsoft.VisualStudio.GraphModel.GraphNodeId * Microsoft.VisualStudio.GraphModel.GraphNodeId -> Microsoft.VisualStudio.GraphModel.GraphLink
Public Function Get (sourceId As GraphNodeId, targetId As GraphNodeId) As GraphLink

Parameters

sourceId
GraphNodeId

The source node

targetId
GraphNodeId

The target node

Returns

The Link that was found, otherwise null

Applies to

Get(GraphNode, GraphNode)

Gets the link with the specified source

public:
 Microsoft::VisualStudio::GraphModel::GraphLink ^ Get(Microsoft::VisualStudio::GraphModel::GraphNode ^ source, Microsoft::VisualStudio::GraphModel::GraphNode ^ target);
public Microsoft.VisualStudio.GraphModel.GraphLink Get (Microsoft.VisualStudio.GraphModel.GraphNode source, Microsoft.VisualStudio.GraphModel.GraphNode target);
member this.Get : Microsoft.VisualStudio.GraphModel.GraphNode * Microsoft.VisualStudio.GraphModel.GraphNode -> Microsoft.VisualStudio.GraphModel.GraphLink
Public Function Get (source As GraphNode, target As GraphNode) As GraphLink

Parameters

source
GraphNode

The source node

target
GraphNode

The target node

Returns

The Link that was found, otherwise null

Applies to

Get(String, String)

Gets the link with the specified source using node Id as strings

public:
 Microsoft::VisualStudio::GraphModel::GraphLink ^ Get(System::String ^ sourceId, System::String ^ targetId);
public Microsoft.VisualStudio.GraphModel.GraphLink Get (string sourceId, string targetId);
member this.Get : string * string -> Microsoft.VisualStudio.GraphModel.GraphLink
Public Function Get (sourceId As String, targetId As String) As GraphLink

Parameters

sourceId
String

The source node

targetId
String

The target node

Returns

The Link that was found, otherwise null

Applies to