Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the link from the specified source to the specified target node. If not found, a new link will be created.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function GetOrCreate ( _
source As GraphNode, _
target As GraphNode _
) As GraphLink
public GraphLink GetOrCreate(
GraphNode source,
GraphNode target
)
public:
GraphLink^ GetOrCreate(
GraphNode^ source,
GraphNode^ target
)
member GetOrCreate :
source:GraphNode *
target:GraphNode -> GraphLink
public function GetOrCreate(
source : GraphNode,
target : GraphNode
) : GraphLink
Parameters
- source
Type: Microsoft.VisualStudio.GraphModel.GraphNode
source node
- target
Type: Microsoft.VisualStudio.GraphModel.GraphNode
target node
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphLink
the link that was found or created
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.