GraphLinkCollection::Add Method (GraphLink^, GraphLink^)
Visual Studio 2015
Adds a link to the graph, or merge it with an existing Link object
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Parameters
- link
-
Type:
Microsoft.VisualStudio.GraphModel::GraphLink^
link to add
- result
-
Type:
Microsoft.VisualStudio.GraphModel::GraphLink^
The link that was added or the old link that was merged into
| Exception | Condition |
|---|---|
| ArgumentNullException | thrown if link is null |
| InvalidOperationException | thrown if source of link is not in the graph -or- thrown if target of link is not in the graph |
Show: