GraphLinkCollection.GetOrCreate Method (GraphNodeId, String)

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

Syntax

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

Parameters

  • targetId
    Type: String

Return Value

Type: Microsoft.VisualStudio.GraphModel.GraphLink

.NET Framework Security

See Also

Reference

GraphLinkCollection Class

GetOrCreate Overload

Microsoft.VisualStudio.GraphModel Namespace