GraphLinkCollection.Get 方法

定义

重载

Get(String, String, Int32)

获取具有指定源的链接,并使用节点 Id 作为字符串和多重链接索引

Get(GraphNodeId, GraphNodeId, Int32)

获取具有指定源和目标和多链接索引的链接

Get(GraphNode, GraphNode, Int32)

获取具有指定源的链接

Get(GraphNodeId, GraphNodeId)

使用 GraphNodeId 获取具有指定源的链接

Get(GraphNode, GraphNode)

获取具有指定源的链接

Get(String, String)

使用节点 Id 作为字符串获取具有指定源的链接

Get(String, String, Int32)

获取具有指定源的链接,并使用节点 Id 作为字符串和多重链接索引

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

参数

sourceId
String

源节点

targetId
String

目标节点

index
Int32

多链路索引

返回

GraphLink

找到的链接,否则为 null

适用于

Get(GraphNodeId, GraphNodeId, Int32)

获取具有指定源和目标和多链接索引的链接

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

参数

sourceId
GraphNodeId

源节点

targetId
GraphNodeId

目标节点

index
Int32

多链接索引

返回

GraphLink

找到的链接,否则为 null

适用于

Get(GraphNode, GraphNode, Int32)

获取具有指定源的链接

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

参数

source
GraphNode

源节点

target
GraphNode

目标节点

index
Int32

多链接索引

返回

GraphLink

找到的链接,否则为 null

适用于

Get(GraphNodeId, GraphNodeId)

使用 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

参数

sourceId
GraphNodeId

源节点

targetId
GraphNodeId

目标节点

返回

GraphLink

找到的链接,否则为 null

适用于

Get(GraphNode, GraphNode)

获取具有指定源的链接

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

参数

source
GraphNode

源节点

target
GraphNode

目标节点

返回

GraphLink

找到的链接,否则为 null

适用于

Get(String, String)

使用节点 Id 作为字符串获取具有指定源的链接

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

参数

sourceId
String

源节点

targetId
String

目标节点

返回

GraphLink

找到的链接,否则为 null

适用于