共用方式為


GraphLinkCollection.GetOrCreate 方法 (String, GraphNodeId)

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

語法

'宣告
Public Function GetOrCreate ( _
    sourceId As String, _
    targetId As GraphNodeId _
) As GraphLink
public GraphLink GetOrCreate(
    string sourceId,
    GraphNodeId targetId
)
public:
GraphLink^ GetOrCreate(
    String^ sourceId, 
    GraphNodeId^ targetId
)
member GetOrCreate : 
        sourceId:string * 
        targetId:GraphNodeId -> GraphLink 
public function GetOrCreate(
    sourceId : String, 
    targetId : GraphNodeId
) : GraphLink

參數

傳回值

型別:Microsoft.VisualStudio.GraphModel.GraphLink

.NET Framework 安全性

請參閱

參考

GraphLinkCollection 類別

GetOrCreate 多載

Microsoft.VisualStudio.GraphModel 命名空間