GraphLinkCollection::Add Method (GraphLink^)

 

Adds a link to the graph, or merge it with an existing Link object

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

public:
virtual void Add(
	GraphLink^ item
) sealed

Parameters

item
Type: Microsoft.VisualStudio.GraphModel::GraphLink^

link to add

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

Return to top
Show: