GraphLinkCollection.Get 方法 (String, String)

获取带有指定源,把节点 ID 当做字符串的链接。

命名空间:  Microsoft.VisualStudio.GraphModel
程序集:  Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)

语法

声明
Public Function Get ( _
    sourceId As String, _
    targetId As String _
) As GraphLink
public GraphLink Get(
    string sourceId,
    string targetId
)
public:
GraphLink^ Get(
    String^ sourceId, 
    String^ targetId
)
member Get : 
        sourceId:string * 
        targetId:string -> GraphLink
public function Get(
    sourceId : String, 
    targetId : String
) : GraphLink

参数

  • sourceId
    类型:String

    链接源

  • targetId
    类型:String

    链接的目标。

返回值

类型:Microsoft.VisualStudio.GraphModel.GraphLink
找到的链接。否则,null

.NET Framework 安全性

请参阅

参考

GraphLinkCollection 类

Get 重载

Microsoft.VisualStudio.GraphModel 命名空间