Share via


Graph.ImportLink(GraphLink) Method

Definition

Imports a Link along with its source and target nodes so they belong to the graph also. Merges any node or link properties and categories necessary.

public:
 Microsoft::VisualStudio::GraphModel::GraphLink ^ ImportLink(Microsoft::VisualStudio::GraphModel::GraphLink ^ link);
public Microsoft.VisualStudio.GraphModel.GraphLink ImportLink (Microsoft.VisualStudio.GraphModel.GraphLink link);
member this.ImportLink : Microsoft.VisualStudio.GraphModel.GraphLink -> Microsoft.VisualStudio.GraphModel.GraphLink
Public Function ImportLink (link As GraphLink) As GraphLink

Parameters

link
GraphLink

The Link to import

Returns

The imported Link if new to this graph, otherwise the Link itself is simply returned

Applies to