GraphNodeCollection::Add Method (GraphNode^, GraphNode^)

 

Adds the specified node to the graph.

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

public:
bool Add(
	GraphNode^ node,
	[OutAttribute] GraphNode^% resultNode
)

Parameters

node
Type: Microsoft.VisualStudio.GraphModel::GraphNode^

Node to add

resultNode
Type: Microsoft.VisualStudio.GraphModel::GraphNode^

The Node that was added

Return Value

Type: System::Boolean

Exception Condition
ArgumentNullException

thrown if node is null

InvalidOperationException

thrown if the unique node id already exists

Return to top
Show: