GraphLinkCollection::Add Method (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
- item
-
Type:
Microsoft.VisualStudio.GraphModel::GraphLink^
link to add
Implements
ICollection<T>::Add(T)| 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: