GraphLinkCollection::Add Method (GraphLink^, 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:
void Add(
	GraphLink^ link,
	[OutAttribute] GraphLink^% result
)

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

Return to top
Show: